class Ckeditor::Hooks::CanCanAuthorization
This adapter is for the CanCan authorization library. You can create another adapter for different authorization behavior, just be certain it responds to each of the public methods here.
Public Class Methods
new(controller, ability = ::Ability)
click to toggle source
See the authorize_with
config method for where the initialization happens.
# File lib/ckeditor/hooks/cancan.rb, line 10 def initialize(controller, ability = ::Ability) @controller = controller @controller.instance_variable_set '@ability', ability @controller.extend ControllerExtension @controller.current_ability.authorize! :access, :ckeditor end