Module: RailsAdmin::Extensions::CanCanCan::AuthorizationAdapter::ControllerExtension
- Defined in:
- lib/rails_admin/extensions/cancancan/authorization_adapter.rb
Instance Method Summary collapse
Instance Method Details
#current_ability ⇒ Object
9 10 11 12 13 |
# File 'lib/rails_admin/extensions/cancancan/authorization_adapter.rb', line 9 def current_ability # use _current_user instead of default current_user so it works with # whatever current user method is defined with RailsAdmin @current_ability ||= ability_class.new(_current_user) end |