diff options
Diffstat (limited to 'lib/arel/algebra/attributes/attribute.rb')
-rw-r--r-- | lib/arel/algebra/attributes/attribute.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/arel/algebra/attributes/attribute.rb b/lib/arel/algebra/attributes/attribute.rb index 62c1a64324..90a3b13938 100644 --- a/lib/arel/algebra/attributes/attribute.rb +++ b/lib/arel/algebra/attributes/attribute.rb @@ -41,11 +41,9 @@ module Arel row[self] end - module Transformations - def self.included(klass) - klass.send :alias_method, :eql?, :== - end + alias :eql? :== + module Transformations def hash @hash ||= name.hash + root.relation.hash end |