Module: Ckeditor::Hooks::CanCanAuthorization::ControllerExtension
- Defined in:
- lib/ckeditor/hooks/cancan.rb
Instance Method Summary collapse
Instance Method Details
#current_ability ⇒ Object
39 40 41 42 43 |
# File 'lib/ckeditor/hooks/cancan.rb', line 39 def current_ability # use ckeditor_current_user instead of default current_user so it works with # whatever current user method is defined with Ckeditor @current_ability ||= @ability.new(ckeditor_current_user) end |