aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
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/nodes
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/nodes')
-rw-r--r--lib/arel/nodes/not_equal.rb6
-rw-r--r--lib/arel/nodes/table_alias.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/arel/nodes/not_equal.rb b/lib/arel/nodes/not_equal.rb
new file mode 100644
index 0000000000..7f892940cb
--- /dev/null
+++ b/lib/arel/nodes/not_equal.rb
@@ -0,0 +1,6 @@
+module Arel
+ module Nodes
+ class NotEqual < Arel::Nodes::Binary
+ end
+ end
+end
diff --git a/lib/arel/nodes/table_alias.rb b/lib/arel/nodes/table_alias.rb
index 4f1d70ee54..656a820a60 100644
--- a/lib/arel/nodes/table_alias.rb
+++ b/lib/arel/nodes/table_alias.rb
@@ -12,7 +12,7 @@ module Arel
end
def [] name
- name = name.to_s
+ name = name.to_sym
columns.find { |column| column.name == name }
end
end