lean_tag 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lean_tag/taggable.rb +2 -4
- data/lib/lean_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: 5c4c9dab55f5a421f093dab3d2aa54b068e2d979
|
4
|
+
data.tar.gz: d561913360f1b7225d23cf44f24f584b788947f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f765cc88d1bcf0c317dfb21ca12e150b51c34e97101ccc0a93cd3a50a0b9d228631a4d2420e4e09994c5f9c9f8c2b8a378e4614223af042698e53b4f9c0d9d
|
7
|
+
data.tar.gz: 9f987131d6426194ba05e5d4fb5c3fe681a6da5ea6b69226a0795ed25c9e74e44f4f697482c601be3bb9e1eb9a763969921a1029e698c41adf1b0c09ffc6a5a3
|
data/lib/lean_tag/taggable.rb
CHANGED
@@ -63,8 +63,7 @@ module LeanTag
|
|
63
63
|
def remove_tag(tag)
|
64
64
|
tag = self.tags.where(name: tag).first if tag.is_a?(String)
|
65
65
|
|
66
|
-
|
67
|
-
tagging.mark_for_destruction unless tagging.nil?
|
66
|
+
self.taggings.each { |t| t.mark_for_destruction if t.tag.eql?(tag) }
|
68
67
|
end
|
69
68
|
|
70
69
|
##
|
@@ -72,8 +71,7 @@ module LeanTag
|
|
72
71
|
def remove_tag!(tag)
|
73
72
|
tag = self.tags.where(name: tag).first if tag.is_a?(String)
|
74
73
|
|
75
|
-
|
76
|
-
tagging.destroy unless tagging.nil?
|
74
|
+
self.taggings.each { |t| t.mark_for_destruction if t.tag.eql?(tag) }
|
77
75
|
end
|
78
76
|
|
79
77
|
##
|
data/lib/lean_tag/version.rb
CHANGED