Sha256: 4005433073aa0f120f147f1d67476329203d6aac6b62f68a1001166b417f3a54

Contents?: true

Size: 480 Bytes

Versions: 11

Compression:

Stored size: 480 Bytes

Contents

require "active-fedora"
require "active_fedora_finders"
class GenericObject < ::ActiveFedora::Base
  extend ActiveModel::Callbacks
  include ::ActiveFedora::FinderMethods::RepositoryMethods
  include ::ActiveFedora::DatastreamCollections
  include Cul::Hydra::Models::Common
  include Cul::Hydra::Models::Aggregator

  has_many :parts, :property => :cul_member_of, :class_name=>'ActiveFedora::Base'

  #alias :file_objects :resources

  def route_as
    "multipartitem"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cul_hydra-1.11.2 app/models/generic_object.rb
cul_hydra-1.11.1 app/models/generic_object.rb
cul_hydra-1.11.0 app/models/generic_object.rb
cul_hydra-1.10.0 app/models/generic_object.rb
cul_hydra-1.9.6 app/models/generic_object.rb
cul_hydra-1.9.5 app/models/generic_object.rb
cul_hydra-1.9.4 app/models/generic_object.rb
cul_hydra-1.9.3 app/models/generic_object.rb
cul_hydra-1.9.2 app/models/generic_object.rb
cul_hydra-1.9.1 app/models/generic_object.rb
cul_hydra-1.9.0 app/models/generic_object.rb