frenchy 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frenchy/model.rb +1 -1
- data/lib/frenchy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 900479619e9ddf60c44f879d9f1ba83c7176f5b6
|
4
|
+
data.tar.gz: 9b6796a87ef2700a544526ea9a7d0d51a2fca979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d727f9ad761e2033e31b133a764390f0e4bc371c0502cd849051c0a4c382f1f7fc556d4af9c8652d427c9fc6db7d8825ca8e1781f826fc18de238fddeeec520
|
7
|
+
data.tar.gz: 2478df6e201ec0e38b8afef4d149b1ed4b78f249a1a9c62e2ff11721c4c7c71c7cb167dac3ea60e1b2cf60f095583ecb076835bad024c294656ef72ee9789ae6
|
data/lib/frenchy/model.rb
CHANGED
@@ -145,7 +145,7 @@ module Frenchy
|
|
145
145
|
# Convert value to a Time or DateTime. Numbers are treated as unix timestamps,
|
146
146
|
# other values are parsed with DateTime.parse.
|
147
147
|
define_method("#{name}=") do |v|
|
148
|
-
if v.is_a?(
|
148
|
+
if v.is_a?(Integer)
|
149
149
|
set(name, Time.at(v).to_datetime)
|
150
150
|
elsif v.is_a?(DateTime)
|
151
151
|
set(name, v)
|
data/lib/frenchy/version.rb
CHANGED