aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/attributes/attribute.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-10 16:58:19 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-10 16:58:19 -0700
commitf0f6b7fb90b936cb78d786896598486821db6559 (patch)
tree9a5d7d61be6e70fd4c132457dec965ee41533422 /lib/arel/attributes/attribute.rb
parent1ba8ac0848f40c7fa18c9e7bdac944a50d3c348c (diff)
downloadrails-f0f6b7fb90b936cb78d786896598486821db6559.tar.gz
rails-f0f6b7fb90b936cb78d786896598486821db6559.tar.bz2
rails-f0f6b7fb90b936cb78d786896598486821db6559.zip
adding not equal node, column names are expected to be symbols
Diffstat (limited to 'lib/arel/attributes/attribute.rb')
-rw-r--r--lib/arel/attributes/attribute.rb4
1 files changed, 4 insertions, 0 deletions
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