aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/rails/conductor/base_controller.rb
blob: cfa0b8496398f5035879fb1090c17261f2b6cbd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# TODO: Move this to Rails::Conductor gem
class Rails::Conductor::BaseController < ActionController::Base
  layout "rails/conductor"
  before_action :ensure_development_env

  private
    def ensure_development_env
      head :forbidden unless Rails.env.development?
    end
end