aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/primitives
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-16 15:40:15 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-16 15:40:15 -0700
commit1a6a3a1c6aa2f75333edef9100951407c4f76f1f (patch)
tree9e7e524c63e8eeabbdd6ae74ed83cc3469bfca93 /lib/active_relation/primitives
parent7f01134d1bdca70dcc9b16cf433894e7c8236815 (diff)
downloadrails-1a6a3a1c6aa2f75333edef9100951407c4f76f1f.tar.gz
rails-1a6a3a1c6aa2f75333edef9100951407c4f76f1f.tar.bz2
rails-1a6a3a1c6aa2f75333edef9100951407c4f76f1f.zip
properly quoting array values
Diffstat (limited to 'lib/active_relation/primitives')
-rw-r--r--lib/active_relation/primitives/attribute.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_relation/primitives/attribute.rb b/lib/active_relation/primitives/attribute.rb
index 0fed676727..f2c484cc59 100644
--- a/lib/active_relation/primitives/attribute.rb
+++ b/lib/active_relation/primitives/attribute.rb
@@ -52,11 +52,11 @@ module ActiveRelation
end
def history
- [self] + (ancestor ? [ancestor, ancestor.send(:history)].flatten : [])
+ [self] + (ancestor ? [ancestor, ancestor.history].flatten : [])
end
def =~(other)
- !(history & other.send(:history)).empty?
+ !(history & other.history).empty?
end
end
include Congruence