Module: CurationConcern::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/repository_models/curation_concern/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #human_readable_type ⇒ Object
- #set_archived_object_type ⇒ Object
- #to_param ⇒ Object
- #to_s ⇒ Object
- #to_solr(solr_doc = {}, opts = {}) ⇒ Object
Instance Method Details
#human_readable_type ⇒ Object
26 27 28 |
# File 'app/repository_models/curation_concern/model.rb', line 26 def human_readable_type self.class.human_readable_type end |
#set_archived_object_type ⇒ Object
30 31 32 |
# File 'app/repository_models/curation_concern/model.rb', line 30 def set_archived_object_type self.archived_object_type = human_readable_type end |
#to_param ⇒ Object
40 41 42 |
# File 'app/repository_models/curation_concern/model.rb', line 40 def to_param noid end |
#to_s ⇒ Object
44 45 46 |
# File 'app/repository_models/curation_concern/model.rb', line 44 def to_s title end |
#to_solr(solr_doc = {}, opts = {}) ⇒ Object
34 35 36 37 38 |
# File 'app/repository_models/curation_concern/model.rb', line 34 def to_solr(solr_doc={}, opts={}) super(solr_doc, opts) solr_doc["noid_s"] = noid return solr_doc end |