diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 18:13:06 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-14 18:13:06 -0800 |
commit | a7507d845a3b560895bbb0df3ce94fa033caa141 (patch) | |
tree | 3f0a6f54e498d4a4a904c92360f621f4153f493b /lib/arel/nodes | |
parent | e55763a29d922bf4b5c483b9d3dadb1dba3bc683 (diff) | |
download | rails-a7507d845a3b560895bbb0df3ce94fa033caa141.tar.gz rails-a7507d845a3b560895bbb0df3ce94fa033caa141.tar.bz2 rails-a7507d845a3b560895bbb0df3ce94fa033caa141.zip |
removing more nodes!
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r-- | lib/arel/nodes/and.rb | 2 | ||||
-rw-r--r-- | lib/arel/nodes/binary.rb | 15 | ||||
-rw-r--r-- | lib/arel/nodes/greater_than.rb | 6 | ||||
-rw-r--r-- | lib/arel/nodes/greater_than_or_equal.rb | 6 | ||||
-rw-r--r-- | lib/arel/nodes/less_than.rb | 6 | ||||
-rw-r--r-- | lib/arel/nodes/less_than_or_equal.rb | 6 | ||||
-rw-r--r-- | lib/arel/nodes/matches.rb | 6 |
7 files changed, 16 insertions, 31 deletions
diff --git a/lib/arel/nodes/and.rb b/lib/arel/nodes/and.rb index b087a10930..b4443c3d27 100644 --- a/lib/arel/nodes/and.rb +++ b/lib/arel/nodes/and.rb @@ -1,6 +1,6 @@ module Arel module Nodes - class And < Arel::Nodes::Binary + class And < Arel::Nodes::Node attr_reader :children def initialize children, right = nil diff --git a/lib/arel/nodes/binary.rb b/lib/arel/nodes/binary.rb index cfa75909c5..43979f6f2e 100644 --- a/lib/arel/nodes/binary.rb +++ b/lib/arel/nodes/binary.rb @@ -8,5 +8,20 @@ module Arel @right = right end end + + %w{ + Between + NotEqual + Assignment + Or + As + GreaterThan + GreaterThanOrEqual + LessThan + LessThanOrEqual + Matches + }.each do |name| + const_set(name, Class.new(Binary)) + end end end diff --git a/lib/arel/nodes/greater_than.rb b/lib/arel/nodes/greater_than.rb deleted file mode 100644 index 2e03cc2e18..0000000000 --- a/lib/arel/nodes/greater_than.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Arel - module Nodes - class GreaterThan < Arel::Nodes::Binary - end - end -end diff --git a/lib/arel/nodes/greater_than_or_equal.rb b/lib/arel/nodes/greater_than_or_equal.rb deleted file mode 100644 index a8cfaab04e..0000000000 --- a/lib/arel/nodes/greater_than_or_equal.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Arel - module Nodes - class GreaterThanOrEqual < Arel::Nodes::Binary - end - end -end diff --git a/lib/arel/nodes/less_than.rb b/lib/arel/nodes/less_than.rb deleted file mode 100644 index cfaf716c42..0000000000 --- a/lib/arel/nodes/less_than.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Arel - module Nodes - class LessThan < Arel::Nodes::Binary - end - end -end diff --git a/lib/arel/nodes/less_than_or_equal.rb b/lib/arel/nodes/less_than_or_equal.rb deleted file mode 100644 index 55449d12f1..0000000000 --- a/lib/arel/nodes/less_than_or_equal.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Arel - module Nodes - class LessThanOrEqual < Arel::Nodes::Binary - end - end -end diff --git a/lib/arel/nodes/matches.rb b/lib/arel/nodes/matches.rb deleted file mode 100644 index 5ef8ac8302..0000000000 --- a/lib/arel/nodes/matches.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Arel - module Nodes - class Matches < Arel::Nodes::Binary - end - end -end |