diff options
Diffstat (limited to 'lib/arel/algebra/attributes')
-rw-r--r-- | lib/arel/algebra/attributes/attribute.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/algebra/attributes/attribute.rb b/lib/arel/algebra/attributes/attribute.rb index 331f218463..afcbdd8301 100644 --- a/lib/arel/algebra/attributes/attribute.rb +++ b/lib/arel/algebra/attributes/attribute.rb @@ -29,7 +29,7 @@ module Arel end def hash - @hash ||= history.size + name.hash + relation.hash + @hash ||= name.hash + root.relation.hash end def as(aliaz = nil) |