Module: Hydra::Presenter

Extended by:
ActiveSupport::Concern
Includes:
ActiveModelPresenter
Included in:
HydraEditor::Form
Defined in:
app/presenters/hydra/presenter.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ActiveModelPresenter

#initialize, #to_model

Instance Method Details

#multiple?(field) ⇒ Boolean

If the field is a reflection, delegate to the reflection. If the field is a property, delegate to the property. Otherwise return false

Returns:

  • (Boolean)


54
55
56
# File 'app/presenters/hydra/presenter.rb', line 54

def multiple?(field)
  .multiple?(model.class, field)
end

#termsObject



47
48
49
# File 'app/presenters/hydra/presenter.rb', line 47

def terms
  self.class._terms
end