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
-
#multiple?(field) ⇒ Boolean
If the field is a reflection, delegate to the reflection.
- #terms ⇒ Object
Methods included from ActiveModelPresenter
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
54 55 56 |
# File 'app/presenters/hydra/presenter.rb', line 54 def multiple?(field) .multiple?(model.class, field) end |
#terms ⇒ Object
47 48 49 |
# File 'app/presenters/hydra/presenter.rb', line 47 def terms self.class._terms end |