Module: WhurlEngine::Extensions::CanCan::AuthorizationAdapter::ControllerExtension
- Defined in:
- lib/whurl_engine/extensions/cancan/authorization_adapter.rb
Instance Method Summary collapse
Instance Method Details
#current_ability ⇒ Object
64 65 66 67 68 |
# File 'lib/whurl_engine/extensions/cancan/authorization_adapter.rb', line 64 def current_ability # use _current_user instead of default current_user so it works with # whatever current user method is defined with WhurlEngine @current_ability ||= @ability.new(_current_user) end |