aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/attributes/attribute.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-28 13:51:51 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-28 14:55:00 -0700
commita0425099d78c1884478ee3e69a09ea5f7afa1aa9 (patch)
tree2ff8a1513ac3dad4f0ed6ea42ab7719c8881f9a1 /lib/arel/algebra/attributes/attribute.rb
parent8f808807a96c9755a3d0684900228ac594793d03 (diff)
downloadrails-a0425099d78c1884478ee3e69a09ea5f7afa1aa9.tar.gz
rails-a0425099d78c1884478ee3e69a09ea5f7afa1aa9.tar.bz2
rails-a0425099d78c1884478ee3e69a09ea5f7afa1aa9.zip
simplifying the Christener
Diffstat (limited to 'lib/arel/algebra/attributes/attribute.rb')
-rw-r--r--lib/arel/algebra/attributes/attribute.rb6
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