Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/marty/monkey.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.joins(*args) ⇒ Object
249 250 251 252 253 254 255 256 257 |
# File 'lib/marty/monkey.rb', line 249 def joins(*args) # when joins args are strings, checks to see if they're # associations attrs. If so, convert them to symbols for joins # to work properly. new_args = args.map {|a| self.reflections.has_key?(a) ? a.to_sym : a } old_joins(*new_args) end |
.old_joins ⇒ Object
247 |
# File 'lib/marty/monkey.rb', line 247 alias_method :old_joins, :joins |