aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/attributes/attribute.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-12 15:22:26 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-12 15:22:26 -0700
commit4127484bc172900f0817d6adda666a1397ff038e (patch)
treebaf9b2fc45f24b48a5c03635408d1a84e20eb311 /lib/arel/attributes/attribute.rb
parent196b4e05b7390ac31e12a17ae224b1cf35e4becd (diff)
downloadrails-4127484bc172900f0817d6adda666a1397ff038e.tar.gz
rails-4127484bc172900f0817d6adda666a1397ff038e.tar.bz2
rails-4127484bc172900f0817d6adda666a1397ff038e.zip
adding first node
Diffstat (limited to 'lib/arel/attributes/attribute.rb')
-rw-r--r--lib/arel/attributes/attribute.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb
index b83a32bee7..fdc64d62e0 100644
--- a/lib/arel/attributes/attribute.rb
+++ b/lib/arel/attributes/attribute.rb
@@ -1,13 +1,16 @@
module Arel
module Attributes
class Attribute < Struct.new :relation, :name, :column
+ def eq other
+ Nodes::Equality.new self, other
+ end
end
- class String < Attribute; end
- class Time < Attribute; end
+ class String < Attribute; end
+ class Time < Attribute; end
class Boolean < Attribute; end
class Decimal < Attribute; end
- class Float < Attribute; end
+ class Float < Attribute; end
class Integer < Attribute; end
end
end