Module: ActiveRecord::DynamicMatchers
- Included in:
- Base
- Defined in:
- lib/active_record/dynamic_matchers.rb
Overview
:nodoc:
Defined Under Namespace
Classes: FindBy, FindByBang, Method
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object (private)
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/active_record/dynamic_matchers.rb', line 17 def method_missing(name, ...) match = Method.match(name) if match && match.valid?(self, name) match.define(self, name) send(name, ...) else super end end |