Module: CurationConcerns::ModelProxy

Included in:
CollectionPresenter, EmbargoPresenter, FileSetPresenter, LeasePresenter, WorkShowPresenter
Defined in:
app/presenters/curation_concerns/model_proxy.rb

Overview

Provide the ActiveModel methods so that this object routes the same as the object represented by the solr document.

Instance Method Summary collapse

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/presenters/curation_concerns/model_proxy.rb', line 13

def persisted?
  true
end

#to_modelObject



17
18
19
# File 'app/presenters/curation_concerns/model_proxy.rb', line 17

def to_model
  self
end

#to_partial_pathObject



9
10
11
# File 'app/presenters/curation_concerns/model_proxy.rb', line 9

def to_partial_path
  _delegated_to._to_partial_path
end