diff options
author | Vladimir Meremyanin <vladimir@meremyanin.com> | 2011-01-29 14:40:39 +0800 |
---|---|---|
committer | Vladimir Meremyanin <vladimir@meremyanin.com> | 2011-01-29 14:40:39 +0800 |
commit | 2158d592c074813471baa8fa20044b683bb156e6 (patch) | |
tree | e124804a463c55547dd9fe7c4b80e96ce5690065 /lib/arel/nodes/math_operation.rb | |
parent | 7b445c6dd578277f7313746fc497429a56e4b43c (diff) | |
download | rails-2158d592c074813471baa8fa20044b683bb156e6.tar.gz rails-2158d592c074813471baa8fa20044b683bb156e6.tar.bz2 rails-2158d592c074813471baa8fa20044b683bb156e6.zip |
implemented support for math operations in numeric attributes
Diffstat (limited to 'lib/arel/nodes/math_operation.rb')
-rw-r--r-- | lib/arel/nodes/math_operation.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/arel/nodes/math_operation.rb b/lib/arel/nodes/math_operation.rb new file mode 100644 index 0000000000..d9820f1ece --- /dev/null +++ b/lib/arel/nodes/math_operation.rb @@ -0,0 +1,15 @@ +module Arel + module Nodes + class MathOperation < Binary + include Arel::Expressions + include Arel::Predications + include Arel::Math + end + + class Multiplication < MathOperation; end + class Division < MathOperation; end + class Addition < MathOperation; end + class Subtraction < MathOperation; end + + end +end
\ No newline at end of file |