enable locations for basil

This commit is contained in:
Andrew Brown 2023-03-08 15:46:51 -08:00
parent d965b08b7a
commit eff80f54f6

View File

@ -4,7 +4,7 @@ class BasilController < ApplicationController
before_action :require_admin_access, only: [:review], unless: -> { Rails.env.development? }
def index
@enabled_content_types = [Character].map(&:name)
@enabled_content_types = [Character, Location].map(&:name)
@content_type = params[:content_type].try(:humanize) || 'Character'
if @content_type.nil? || !@enabled_content_types.include?(@content_type)