Sha256: 632783b3b6b68e0e63ba7b14756c23b099774b9be72ede3b332f2bb5e3dcdbfc
Contents?: true
Size: 730 Bytes
Versions: 12
Compression:
Stored size: 730 Bytes
Contents
module Sufia module PropertiesDatastreamBehavior extend ActiveSupport::Concern included do set_terminology do |t| t.root(path: "fields") # This is where we put the user id of the object depositor -- impacts permissions/access controls t.depositor index_as: [:symbol, :stored_searchable] # This is where we put the relative path of the file if submitted as a folder t.relative_path t.import_url path: 'importUrl', index_as: :symbol end end module ClassMethods def xml_template builder = Nokogiri::XML::Builder.new do |xml| xml.fields end builder.doc end end def prefix "" end end end
Version data entries
12 entries across 12 versions & 2 rubygems