aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/type/date.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/type/date.rb')
-rw-r--r--activemodel/lib/active_model/type/date.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/type/date.rb b/activemodel/lib/active_model/type/date.rb
index a7e6122ff4..c5fe926039 100644
--- a/activemodel/lib/active_model/type/date.rb
+++ b/activemodel/lib/active_model/type/date.rb
@@ -46,7 +46,7 @@ module ActiveModel
def value_from_multiparameter_assignment(*)
time = super
- time && time.to_date
+ time && new_date(time.year, time.mon, time.mday)
end
end
end