freeze_tag 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/freeze_tag/taggable.rb +1 -1
- data/lib/freeze_tag/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: 211af482396d9667075a43f5ec6d881fc6b2f2bc
|
4
|
+
data.tar.gz: 207a3373b4400315c198b2a7133954197ba6bd14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56977c250f89ef9188916e451faf02a7ddae7cbb1a8336cdf636893952736ef253df4731cb943d6bbe572511c8ec831be60b55f70d77be8fc75b4e9cbdbacb0c
|
7
|
+
data.tar.gz: 0516b7b91c5158026bc5a6dee6a2ed783f413e80168eb7fe8c0415b0c9c78bee5880674c49ee446ae780e8c9f25f73899eca004a64b3d462365e59d664d7edbf
|
data/Gemfile.lock
CHANGED
data/lib/freeze_tag/taggable.rb
CHANGED
@@ -57,7 +57,7 @@ module FreezeTag
|
|
57
57
|
|
58
58
|
def expire_freeze_tag(tag: nil, date: nil, list: nil)
|
59
59
|
tag = tag.downcase if self.try(:freeze_tag_case_sensitive)
|
60
|
-
to_exp = freeze_tags.find_by(tag: tag, list: list)
|
60
|
+
to_exp = freeze_tags.find_by(tag: tag, list: list, expired_at: nil)
|
61
61
|
return nil unless to_exp.present?
|
62
62
|
exp_at = date.present? ? date : DateTime.now
|
63
63
|
to_exp.expired_at = exp_at
|
data/lib/freeze_tag/version.rb
CHANGED