Module: Mustcan::Extension::ClassMethods

Defined in:
lib/mustcan/extension.rb

Instance Method Summary collapse

Instance Method Details

#mustcanObject



8
9
10
11
12
13
# File 'lib/mustcan/extension.rb', line 8

def mustcan
  check_authorization unless: :devise_controller?
  rescue_from CanCan::AccessDenied, with: :permission_denied

  include ExtensionInstanceMethods
end