Module: Neuron::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/neuron/controller.rb
Class Method Summary collapse
Class Method Details
.setup! ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/neuron/controller.rb', line 8 def self.setup! if defined?(::ActionController) ActionController::Base.send(:include, Neuron::Controller) ActionController::Base.send(:include, Neuron::Resources::Controller) if defined?(::InheritedResources) ActionController::Base.send(:include, Neuron::Authorization::Controller) if defined?(::CanCan) end end |