Class: Hyrax::ModelDecorator
- Inherits:
-
Draper::Decorator
- Object
- Draper::Decorator
- Hyrax::ModelDecorator
- Defined in:
- lib/hyrax/model_decorator.rb
Overview
Provides ActiveModel-safe decoration via ‘Draper`.
This is needed to preserve Presenter, View, and URL helper behavior for decorated models.
Direct Known Subclasses
SolrDocument::OrderedMembers, Workflow::ObjectInWorkflowDecorator
Instance Method Summary collapse
Instance Method Details
#to_model(*args) ⇒ Object
27 28 29 |
# File 'lib/hyrax/model_decorator.rb', line 27 def to_model(*args) object.to_model(*args) end |