module Ckeditor::Hooks::CanCanAuthorization::ControllerExtension

def current_ability

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