aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-02-08 14:22:10 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-02-08 14:22:10 -0500
commitfa987cb8ec4cc48018aac4949567823587155765 (patch)
treecc038c5d35b5cab62475dd793b546cd4f8959af5 /activerecord/lib/active_record/associations
parent01e67316d8c802df3928b53d0e0ce9153044f5ad (diff)
downloadrails-fa987cb8ec4cc48018aac4949567823587155765.tar.gz
rails-fa987cb8ec4cc48018aac4949567823587155765.tar.bz2
rails-fa987cb8ec4cc48018aac4949567823587155765.zip
Reverting 16f6f25 (Change behaviour with empty array in where clause)
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb
index 2099effbeb..d1458f30ba 100644
--- a/activerecord/lib/active_record/associations/has_many_through_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -136,7 +136,7 @@ module ActiveRecord
records = load_target if records == :all
scope = through_association.scope
- scope.where! construct_join_attributes(*records) unless records.empty?
+ scope.where! construct_join_attributes(*records)
case method
when :destroy