From f0f6b7fb90b936cb78d786896598486821db6559 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 10 Sep 2010 16:58:19 -0700 Subject: adding not equal node, column names are expected to be symbols --- lib/arel/attributes/attribute.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arel/attributes/attribute.rb') diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb index d77574f33e..617112f681 100644 --- a/lib/arel/attributes/attribute.rb +++ b/lib/arel/attributes/attribute.rb @@ -1,6 +1,10 @@ module Arel module Attributes class Attribute < Struct.new :relation, :name, :column + def not_eq other + Nodes::NotEqual.new self, other + end + def eq other Nodes::Equality.new self, other end -- cgit v1.2.3