Module: Hyrax::MissingMethodBehavior
- Included in:
- FileSetPresenter, WorkShowPresenter
- Defined in:
- app/presenters/hyrax/missing_method_behavior.rb
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object (private)
6 7 8 9 |
# File 'app/presenters/hyrax/missing_method_behavior.rb', line 6 def method_missing(method_name, *args, &block) return solr_document.public_send(method_name, *args, &block) if solr_document.respond_to?(method_name) super end |