Method: Olivander::ApplicationHelper#action_klass_for
- Defined in:
- app/helpers/olivander/application_helper.rb
#action_klass_for(resource) ⇒ Object
67 68 69 70 |
# File 'app/helpers/olivander/application_helper.rb', line 67 def action_klass_for(resource) klazz = resource.is_a?(Class) ? resource : resource.class klazz.respond_to?(:action_klass) ? klazz.action_klass : klazz end |