has_safe_dates 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/has_safe_dates/core_ext.rb +1 -1
- data/lib/has_safe_dates/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7770c8dd264f2c352622e52e9af0234fda67a52610d316a0459811b7ae887ec6
|
4
|
+
data.tar.gz: 103eeda57059744da1734a4be4b8a2bb71c61e97031469daa14349667863eda0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7264590c28890f0e557fefc55568a9a06ece4c9f1f008e3928cab3456c27309ad87077579850d64b4833c75656213faa021b04148016f6f384cdd911e46e372
|
7
|
+
data.tar.gz: 0725c7265e70a8f741db5e7f073c49d5cec50ec8f8f28858ee16ea19ca33d9bb23a211c7adabff48e02f01b2ba59af103766a3e9f62c75cf6156b42ec33da78a
|
@@ -61,7 +61,7 @@ module HasSafeDates
|
|
61
61
|
callstack.each do |name, values_with_empty_parameters|
|
62
62
|
if ActiveRecord::Base.has_safe_fields_config[self.class.base_class][:fields].include?(name)
|
63
63
|
date = values_with_empty_parameters.values_at(1, 2, 3).join("-")
|
64
|
-
time = values_with_empty_parameters.values_at(4, 5).join(":")
|
64
|
+
time = values_with_empty_parameters.values_at(4, 5).compact.join(":")
|
65
65
|
datetime_string = "#{date}#{time.blank? ? "" : " #{time}"}"
|
66
66
|
|
67
67
|
# Convert multiparameter parts into a Date string, e.g. "2011-4-23",
|