module Ckeditor::Hooks::CanCanAuthorization::ControllerExtension

Public Instance Methods

current_ability() click to toggle source
# 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