wco_models 3.1.0.70 → 3.1.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/wco/application_helper.rb +4 -4
- data/app/models/wco/tag.rb +5 -0
- data/app/models/wco_email/context.rb +1 -1
- data/app/models/wco_email/message.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: ed7fdcee13ed63a005f411a0667304c20e4b9304a31ddce91ef0ccb2c7eb40c0
|
4
|
+
data.tar.gz: a0496d639675de1bd566b68dcaff1f1f790b9e52d578511c05ca93438a71b9c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197e54b9da6b3e53f2bb1ab3041ccfed04163b56ae609be3b664c64c7e462b84622cf8b9f2dd6a486e4669b0bd13806ae77771f99ef5ec901676c31f0593add8
|
7
|
+
data.tar.gz: bab77602004ffada4035abee34b573653ec61b57ad80953e9195c13b09ac82a5ebaf4cb809c111767493f986fb3e358eb846ac1ee19dad333d15e7121a4bca8c
|
@@ -14,18 +14,18 @@ module Wco::ApplicationHelper
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def pretty_date date
|
17
|
-
|
18
|
-
date
|
17
|
+
return nil if !date
|
18
|
+
date.in_time_zone( Rails.application.config.time_zone ).strftime('%Y-%m-%d')
|
19
19
|
end
|
20
20
|
def pp_date a; pretty_date a; end
|
21
21
|
|
22
22
|
def pp_datetime date
|
23
|
-
|
23
|
+
return nil if !date
|
24
|
+
return date.in_time_zone( Rails.application.config.time_zone ).strftime('%Y-%m-%d %l:%M%P %Z')
|
24
25
|
end
|
25
26
|
|
26
27
|
def pp_time date
|
27
28
|
return nil if !date
|
28
|
-
# return date.strftime('%l:%M%P %z')
|
29
29
|
return date.in_time_zone( Rails.application.config.time_zone ).strftime('%l:%M%P %Z')
|
30
30
|
end
|
31
31
|
|
data/app/models/wco/tag.rb
CHANGED