my_tags 0.0.5 → 0.0.6
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/my_tags/active_record.rb +4 -8
- data/my_tags.gemspec +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: eebab241d45af8429623a763cbdf4d15c26a2a83
|
4
|
+
data.tar.gz: e267d92fd9be894886ff5b40f413df347b70edb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3857d3576122465bcb69947a488552b46b68b3a9ee4506d8219685af3020ff5cad7b1bb4e469b8881baaedc1e51281391d7e560844ae8cbec8b1997ddfc4e0e
|
7
|
+
data.tar.gz: 91a19aba3bcf94004fcd22f0e7b3d723b6272e41d24e5c674d96c3a96d83428c0b936c467df3ab69f0b137a970b8d72c24730891a4f4b6cee0e62d2a4f46105c
|
@@ -3,16 +3,12 @@ module MyTags::ActiveRecord
|
|
3
3
|
base.extend MyTags::ActiveRecord::ClassMethods
|
4
4
|
end
|
5
5
|
|
6
|
-
def
|
7
|
-
@
|
6
|
+
def tag_list
|
7
|
+
@tag_list ||= MyTags::TagList.new self
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
|
12
|
-
@tag_names = names
|
13
|
-
else
|
14
|
-
@tag_names = MyTags::TagList.new_with_names self, names
|
15
|
-
end
|
10
|
+
def tag_list=(names)
|
11
|
+
@tag_names = names.is_a?(MyTags::TagList) ? names : MyTags::TagList.new_with_names(self, names)
|
16
12
|
end
|
17
13
|
|
18
14
|
module ClassMethods
|
data/my_tags.gemspec
CHANGED