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
262 263 264 265 266 267 268 269 270 |
# File 'lib/marty/monkey.rb', line 262 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
260 |
# File 'lib/marty/monkey.rb', line 260 alias_method :old_joins, :joins |