Module: RailsAdmin::Extensions::CanCan::AuthorizationAdapter::ControllerExtension
- Defined in:
- lib/rails_admin/extensions/cancan/authorization_adapter.rb
Instance Method Summary collapse
Instance Method Details
#current_ability ⇒ Object
62 63 64 65 66 |
# File 'lib/rails_admin/extensions/cancan/authorization_adapter.rb', line 62 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.new(_current_user) end |