aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/type/time.rb')
-rw-r--r--activerecord/lib/active_record/type/time.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/type/time.rb b/activerecord/lib/active_record/type/time.rb
index cab1c7bf1e..930fb69da0 100644
--- a/activerecord/lib/active_record/type/time.rb
+++ b/activerecord/lib/active_record/type/time.rb
@@ -2,6 +2,9 @@ module ActiveRecord
module Type
class Time < Value # :nodoc:
include TimeValue
+ include Helpers::AcceptsMultiparameterTime.new(
+ defaults: { 1 => 1970, 2 => 1, 3 => 1, 4 => 0, 5 => 0 }
+ )
def type
:time