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
277 278 279 280 281 282 283 284 285 |
# File 'lib/marty/monkey.rb', line 277 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 do |a| reflections.key?(a) ? a.to_sym : a end old_joins(*new_args) end |
.old_joins ⇒ Object
275 |
# File 'lib/marty/monkey.rb', line 275 alias_method :old_joins, :joins |