aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/type/big_integer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/type/big_integer.rb')
-rw-r--r--activemodel/lib/active_model/type/big_integer.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/type/big_integer.rb b/activemodel/lib/active_model/type/big_integer.rb
new file mode 100644
index 0000000000..4168cbfce7
--- /dev/null
+++ b/activemodel/lib/active_model/type/big_integer.rb
@@ -0,0 +1,13 @@
+require 'active_model/type/integer'
+
+module ActiveModel
+ module Type
+ class BigInteger < Integer # :nodoc:
+ private
+
+ def max_value
+ ::Float::INFINITY
+ end
+ end
+ end
+end