Class: ActiveRecord::Relation
- Inherits:
-
Object
- Object
- ActiveRecord::Relation
show all
- Defined in:
- lib/dynamic_finders_plus/method_missing_hook.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/dynamic_finders_plus/method_missing_hook.rb', line 22
def method_missing name, *args, &block
if (new_methods = DynamicFindersPlus::Finder.define_for @klass) && new_methods[name]
self.send(name, *args, &block)
else
a39c8f8aecf84ae4a83e86415d111cc8 name, *args, &block
end
end
|
Instance Method Details
#a39c8f8aecf84ae4a83e86415d111cc8 ⇒ Object
21
|
# File 'lib/dynamic_finders_plus/method_missing_hook.rb', line 21
alias a39c8f8aecf84ae4a83e86415d111cc8 method_missing
|