aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/type/decimal_without_scale.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/type/decimal_without_scale.rb')
-rw-r--r--activemodel/lib/active_model/type/decimal_without_scale.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/type/decimal_without_scale.rb b/activemodel/lib/active_model/type/decimal_without_scale.rb
new file mode 100644
index 0000000000..129baa0c10
--- /dev/null
+++ b/activemodel/lib/active_model/type/decimal_without_scale.rb
@@ -0,0 +1,11 @@
+require 'active_model/type/big_integer'
+
+module ActiveModel
+ module Type
+ class DecimalWithoutScale < BigInteger # :nodoc:
+ def type
+ :decimal
+ end
+ end
+ end
+end