Sha256: 727cbb14d036a92988aa2960c505bc074831bbe46ebff878a78094ab624da038

Contents?: true

Size: 236 Bytes

Versions: 14

Compression:

Stored size: 236 Bytes

Contents

module Sufia
  module FileSetBehavior
    extend ActiveSupport::Concern
    include Sufia::WithEvents

    # Cast to a SolrDocument by querying from Solr
    def to_presenter
      CatalogController.new.fetch(id).last
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sufia-7.4.1 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.4.0 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.3.1 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.3.0 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.3.0.rc3 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.3.0.rc2 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.3.0.rc1 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.2.0 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.1.0 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.0.0 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.0.0.rc2 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.0.0.rc1 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.0.0.beta4 app/models/concerns/sufia/file_set_behavior.rb
sufia-7.0.0.beta3 app/models/concerns/sufia/file_set_behavior.rb