Module: Ckeditor::Hooks::PunditAuthorization::ControllerExtension

Defined in:
lib/ckeditor/hooks/pundit.rb

Instance Method Summary collapse

Instance Method Details

#current_user_for_punditObject



36
37
38
39
40
# File 'lib/ckeditor/hooks/pundit.rb', line 36

def current_user_for_pundit
  # use ckeditor_current_user instead of default current_user so it works with
  # whatever current user method is defined with Ckeditor
  ckeditor_current_user
end