Module: Hydra::ActiveModelPresenter::ClassMethods

Defined in:
app/presenters/hydra/presenter.rb

Instance Method Summary collapse

Instance Method Details

#model_nameObject



26
27
28
29
# File 'app/presenters/hydra/presenter.rb', line 26

def model_name
  raise "You must set `self.model_class = ' after including Hydra::Presenter on #{self}." if model_class.nil?
  model_class.model_name
end