Module: Legacy::ClassMethods
- Defined in:
- lib/legacy.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_id, *args, &block) ⇒ Object
15 16 17 18 19 |
# File 'lib/legacy.rb', line 15 def method_missing(method_id, *args, &block) method_id = Legacy.real_method(column_names, method_id) if method_id.to_s =~ /^find(.*)by(.*?)/ super(method_id, *args, &block) end |