aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/attributes/attribute.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-03-07 08:30:09 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-07 08:30:09 -0800
commit8aa5d7a393e0bbef8cd3ae9ecf64c2358b802b5f (patch)
tree65bf0d13754591494117283ac9b8c076cd5799ea /lib/arel/attributes/attribute.rb
parent2644bcec7dbe3a65277b3a6a141853484171535a (diff)
parent2158d592c074813471baa8fa20044b683bb156e6 (diff)
downloadrails-8aa5d7a393e0bbef8cd3ae9ecf64c2358b802b5f.tar.gz
rails-8aa5d7a393e0bbef8cd3ae9ecf64c2358b802b5f.tar.bz2
rails-8aa5d7a393e0bbef8cd3ae9ecf64c2358b802b5f.zip
Merge remote branch 'stiff/master' into omg
* stiff/master: implemented support for math operations in numeric attributes
Diffstat (limited to 'lib/arel/attributes/attribute.rb')
-rw-r--r--lib/arel/attributes/attribute.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb
index 9a42e5a4da..bd3f4b58f1 100644
--- a/lib/arel/attributes/attribute.rb
+++ b/lib/arel/attributes/attribute.rb
@@ -5,12 +5,16 @@ module Arel
include Arel::Predications
end
+ class NumericAttribute < Attribute
+ include Arel::Math
+ end
+
class String < Attribute; end
class Time < Attribute; end
class Boolean < Attribute; end
- class Decimal < Attribute; end
- class Float < Attribute; end
- class Integer < Attribute; end
+ class Decimal < NumericAttribute; end
+ class Float < NumericAttribute; end
+ class Integer < NumericAttribute; end
class Undefined < Attribute; end
end