Method: Olivander::ApplicationHelper#authorized_resource_action?
- Defined in:
- app/helpers/olivander/application_helper.rb
#authorized_resource_action?(action, resource, except = nil) ⇒ Boolean
76 77 78 79 80 |
# File 'app/helpers/olivander/application_helper.rb', line 76 def (action, resource, except = nil) return false if action == except respond_to?('can?') ? can?(action, resource) : true end |