diff options
author | Daniel Cadenas <dcadenas@gmail.com> | 2011-08-03 20:58:29 -0300 |
---|---|---|
committer | Daniel Cadenas <dcadenas@gmail.com> | 2011-08-03 20:58:29 -0300 |
commit | 3712071148485a8a6f2e28944f1d4932ce72b4bd (patch) | |
tree | aac97ab7016466ea5023de44dc8ecb4734d68618 /lib/arel | |
parent | 11f929b5c485adab60ea2d8b515ef2abcf5400f4 (diff) | |
download | rails-3712071148485a8a6f2e28944f1d4932ce72b4bd.tar.gz rails-3712071148485a8a6f2e28944f1d4932ce72b4bd.tar.bz2 rails-3712071148485a8a6f2e28944f1d4932ce72b4bd.zip |
Remove short circuit evaluation and leave AST as it is
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/nodes/false.rb | 11 | ||||
-rw-r--r-- | lib/arel/nodes/true.rb | 11 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/arel/nodes/false.rb b/lib/arel/nodes/false.rb index 4196070946..611e19633b 100644 --- a/lib/arel/nodes/false.rb +++ b/lib/arel/nodes/false.rb @@ -1,17 +1,6 @@ module Arel module Nodes class False < Arel::Nodes::Node - def not - True.new - end - - def or right - right - end - - def and right - self - end end end end diff --git a/lib/arel/nodes/true.rb b/lib/arel/nodes/true.rb index 82f20837f8..63dd5562e1 100644 --- a/lib/arel/nodes/true.rb +++ b/lib/arel/nodes/true.rb @@ -1,17 +1,6 @@ module Arel module Nodes class True < Arel::Nodes::Node - def not - False.new - end - - def or right - self - end - - def and right - right - end end end end |