Module: Sufia::FileSetBehavior
- Extended by:
- ActiveSupport::Concern
- Includes:
- WithEvents
- Defined in:
- app/models/concerns/sufia/file_set_behavior.rb
Instance Method Summary collapse
-
#to_presenter ⇒ Object
Cast to a SolrDocument by querying from Solr.
Methods included from WithEvents
#event_class, #event_store, #events, #log_event, #stream
Instance Method Details
#to_presenter ⇒ Object
Cast to a SolrDocument by querying from Solr
7 8 9 |
# File 'app/models/concerns/sufia/file_set_behavior.rb', line 7 def to_presenter CatalogController.new.fetch(id).last end |