Module: Hyrax::CollectionBehavior::ClassMethods
- Defined in:
- app/models/concerns/hyrax/collection_behavior.rb
Instance Method Summary collapse
-
#_to_partial_path ⇒ Object
This governs which partial to draw when you render this type of object.
- #collection_type_gid_document_field_name ⇒ Object
Instance Method Details
#_to_partial_path ⇒ Object
This governs which partial to draw when you render this type of object
90 91 92 93 94 95 96 |
# File 'app/models/concerns/hyrax/collection_behavior.rb', line 90 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 |
#collection_type_gid_document_field_name ⇒ Object
98 99 100 101 |
# File 'app/models/concerns/hyrax/collection_behavior.rb', line 98 def collection_type_gid_document_field_name Deprecation.warn('use Hyrax.config.collection_type_index_field instead') Hyrax.config.collection_type_index_field end |