Sha256: 440f56605c42942fc130a845d374dcbca567dd1ca89c1493e7e9b05e385fb223
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
# Generated via # `rails generate active_fedora::model <%= class_name %>` require 'active_fedora/base' class <%= class_name %> < ActiveFedora::Base <% if options['descMetadata'] %> has_metadata name: "descMetadata", type: <% options['descMetadata'] %> <% else %> # Uncomment the following lines to add a #descMetadata method that is a # datastream. You will need to specify the :type:, which may involve # creating a new Datastream object. # # has_metadata name: "descMetadata", type: <%= class_name %>MetadataDatastream <%- 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
4 entries across 4 versions & 1 rubygems