Method: SQLConstructor::BasicSelect_mysql#method_missing
- Defined in:
- lib/dialects/mysql-constructor.rb
#method_missing(method, *args) ⇒ Object
Send missing methods calls to the @caller object, and also handle
JOINs, UNIONs and INDEX hints
46 47 48 49 50 51 52 |
# File 'lib/dialects/mysql-constructor.rb', line 46 def method_missing ( method, *args ) # Handle all [*_]join calls: return _addJoin( method, *args ) if method.to_s =~ /^[a-z_]*join$/ # Handle all valid *_index/*_key calls: return _addIndexes( method, *args ) if VALID_INDEX_HINTS.include? method super end |