Module: Hydra::ActiveModelPresenter

Extended by:
ActiveSupport::Concern
Included in:
Presenter
Defined in:
app/presenters/hydra/presenter.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#initialize(object) ⇒ Object



13
14
15
# File 'app/presenters/hydra/presenter.rb', line 13

def initialize(object)
  @model = object
end

#to_model#to_model

Returns self.

Returns:



21
22
23
# File 'app/presenters/hydra/presenter.rb', line 21

def to_model
  self
end