app/models/concerns/hyrax/work_behavior.rb
# This governs which partial to draw when you render this type of object
This governs which partial to draw when you render this type of object
This governs which partial to draw when you render this type of object
def _to_partial_path 
        @_to_partial_path ||= begin
                                element = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.demodulize(name))
                                collection = ActiveSupport::Inflector.tableize(name)
                                "hyrax/#{collection}/#{element}".freeze
                              end
      end
def _to_partial_path @_to_partial_path ||= begin element = ActiveSupport :: Inflector . underscore ( ActiveSupport :: Inflector . demodulize ( name ) ) collection = ActiveSupport :: Inflector . tableize ( name ) "hyrax/#{collection}/#{element}" . freeze end end
This governs which partial to draw when you render this type of object
This governs which partial to draw when you render this type of object
#:nodoc: