Sha256: 8c1fc06dd520ce7b284f573c0c63e1cea10ff05e15e62b72cc75f11a8ee07d4a
Contents?: true
Size: 955 Bytes
Versions: 70
Compression:
Stored size: 955 Bytes
Contents
# Generated via # `rails generate active_fedora::model <%= class_name %>` class <%= class_name %> < ActiveFedora::Base <% if options['descMetadata'] %> has_metadata "descMetadata", type: <%= options['descMetadata'] %> <% else %> # Creating a #descMetadata method that returns the datastream. # has_metadata "descMetadata", type: <%= class_name %>Metadata <%- end -%> <% if options['has_file_datastream'] %> has_file_datastream "<%= options['has_file_datastream'] %>" <% else %> # Uncomment the following lines to add an #attachment method that is a # file_datastream: # # has_file_datastream "attachment" <% end %> # "If you need to add additional attributes to the SOLR document, define the # #to_solr method and make sure to use super" # # def to_solr(solr_document={}, options={}) # super(solr_document, options) # solr_document["my_attribute_s"] = my_attribute # return solr_document # end end
Version data entries
70 entries across 70 versions & 1 rubygems