Module: CurationConcerns::WorkBehavior::ClassMethods

Defined in:
app/models/concerns/curation_concerns/work_behavior.rb

Instance Method Summary collapse

Instance Method Details

#_to_partial_pathObject

This governs which partial to draw when you render this type of object



29
30
31
32
33
34
35
# File 'app/models/concerns/curation_concerns/work_behavior.rb', line 29

def _to_partial_path #:nodoc:
  @_to_partial_path ||= begin
    element = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.demodulize(name))
    collection = ActiveSupport::Inflector.tableize(name)
    "curation_concerns/#{collection}/#{element}".freeze
  end
end

#indexerObject



24
25
26
# File 'app/models/concerns/curation_concerns/work_behavior.rb', line 24

def indexer
  CurationConcerns::WorkIndexer
end