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
24 25 26 |
# File 'app/repository_models/curation_concern/model.rb', line 24 def human_readable_type self.class.human_readable_type end |
#set_archived_object_type ⇒ Object
28 29 30 |
# File 'app/repository_models/curation_concern/model.rb', line 28 def set_archived_object_type self.archived_object_type = human_readable_type end |
#to_param ⇒ Object
38 39 40 |
# File 'app/repository_models/curation_concern/model.rb', line 38 def to_param noid end |
#to_s ⇒ Object
42 43 44 |
# File 'app/repository_models/curation_concern/model.rb', line 42 def to_s title end |
#to_solr(solr_doc = {}, opts = {}) ⇒ Object
32 33 34 35 36 |
# File 'app/repository_models/curation_concern/model.rb', line 32 def to_solr(solr_doc={}, opts={}) super(solr_doc, opts) solr_doc["noid_s"] = noid return solr_doc end |