Class: Adminsite::AdminApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Adminsite::AdminApplicationController
show all
- Includes:
- CanCan::ControllerAdditions
- Defined in:
- app/controllers/adminsite/admin_application_controller.rb
Overview
Filters added to this controller apply to all controllers in the application. Likewise, all the methods added will be available for all controllers.
Instance Method Summary
collapse
Instance Method Details
#authorize!(action, subject, *args) ⇒ Object
18
19
20
21
22
|
# File 'app/controllers/adminsite/admin_application_controller.rb', line 18
def authorize!(action, subject, *args)
subject = subject.call(self) if subject.is_a?(Proc)
puts "#{self}#authorize!(#{action}, #{subject}, #{args.inspect})" if Rails.env.development?
super(action, subject, *args)
end
|
#authorize_resource_class ⇒ Object
24
25
26
|
# File 'app/controllers/adminsite/admin_application_controller.rb', line 24
def authorize_resource_class
self
end
|