aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/math.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/math.rb')
-rw-r--r--lib/arel/math.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/math.rb b/lib/arel/math.rb
index b7c2419233..f3dbc7bc49 100644
--- a/lib/arel/math.rb
+++ b/lib/arel/math.rb
@@ -5,11 +5,11 @@ module Arel
end
def +(other)
- Arel::Nodes::Addition.new(self, other)
+ Arel::Nodes::Grouping.new(Arel::Nodes::Addition.new(self, other))
end
def -(other)
- Arel::Nodes::Subtraction.new(self, other)
+ Arel::Nodes::Grouping.new(Arel::Nodes::Subtraction.new(self, other))
end
def /(other)