Module: Elasticsearch::Persistence::Delegation::ClassSpecificRelation
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/elasticsearch/persistence/relation/delegation.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (protected)
86 87 88 89 90 91 92 93 |
# File 'lib/elasticsearch/persistence/relation/delegation.rb', line 86 def method_missing(method, *args, &block) if @klass.respond_to?(method) self.class.delegate_to_scoped_klass(method) scoping { @klass.public_send(method, *args, &block) } else super end end |