aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/type.rb')
-rw-r--r--activemodel/lib/active_model/type.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/type.rb b/activemodel/lib/active_model/type.rb
index b0ed67f28e..39324999c9 100644
--- a/activemodel/lib/active_model/type.rb
+++ b/activemodel/lib/active_model/type.rb
@@ -32,6 +32,10 @@ module ActiveModel
def lookup(*args, **kwargs) # :nodoc:
registry.lookup(*args, **kwargs)
end
+
+ def default_value # :nodoc:
+ @default_value ||= Value.new
+ end
end
register(:big_integer, Type::BigInteger)