diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_association.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb index 9e94d70972..21879adb77 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -78,7 +78,9 @@ module ActiveRecord options[:order] = @options[:order] end - @association_class.find(args.size == 1 ? args.first : args, options) + # Pass through args exactly as we received them. + args << options + @association_class.find(*args) end end |