Method: ActiveRecord::DynamicMatchers#method_missing
- Defined in:
- lib/active_record/dynamic_matchers.rb
#method_missing(name, *arguments, &block) ⇒ Object (private)
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/active_record/dynamic_matchers.rb', line 15 def method_missing(name, *arguments, &block) match = Method.match(self, name) if match && match.valid? match.define send(name, *arguments, &block) else super end end |