Module: ActiveAny::Delegation::ClassSpecificRelation
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_any/relation/delegation.rb
Defined Under Namespace
Modules: ClassMethods
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
74 75 76 77 78 79 80 81 |
# File 'lib/active_any/relation/delegation.rb', line 74 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 |