Module: Hyrax::WorkBehavior::ClassMethods
- Defined in:
- app/models/concerns/hyrax/work_behavior.rb
Instance Method Summary collapse
-
#_to_partial_path ⇒ Object
This governs which partial to draw when you render this type of object.
- #flexible? ⇒ Boolean
Instance Method Details
#_to_partial_path ⇒ Object
This governs which partial to draw when you render this type of object
43 44 45 46 47 48 49 |
# File 'app/models/concerns/hyrax/work_behavior.rb', line 43 def _to_partial_path # :nodoc: @_to_partial_path ||= begin element = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.demodulize(name)) collection = ActiveSupport::Inflector.tableize(name) "hyrax/#{collection}/#{element}" end end |
#flexible? ⇒ Boolean
51 52 53 |
# File 'app/models/concerns/hyrax/work_behavior.rb', line 51 def flexible? false end |