app/controllers/rails/conductor/base_controller.rb in actionmailbox-0.1.0 vs app/controllers/rails/conductor/base_controller.rb in actionmailbox-6.0.0.beta1
- old
+ new
@@ -1,10 +1,14 @@
-# TODO: Move this to Rails::Conductor gem
-class Rails::Conductor::BaseController < ActionController::Base
- layout "rails/conductor"
- before_action :ensure_development_env
+# frozen_string_literal: true
- private
- def ensure_development_env
- head :forbidden unless Rails.env.development?
- end
+module Rails
+ # TODO: Move this to Rails::Conductor gem
+ class 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
end