freeze_tag 0.1.2 → 0.1.3
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/README.md +13 -0
- data/lib/freeze_tag/tag.rb +5 -0
- 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: 47b2394d2f080146b1820559c8ae66fa499e34a1
|
4
|
+
data.tar.gz: 502553609b09b02c70f14ee5a5d40c7dc69f3a8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f1b3e6b7e499a196c520c28b2925661d7fbaeca1c342a1069489159f20137c7dc411b0bac90c6f70172ac80cd09b8fab59d5c67b8d17b663423493f3ee0fa49
|
7
|
+
data.tar.gz: 24591727e01b8b3ac2a0078f2b522cbe1cf49de18dbbcfd6a37e757e3a84d9bb6988599d94ce928716adf6611dc66311202c894ee3e6001fb001aead61bd03d0
|
data/README.md
CHANGED
@@ -90,6 +90,19 @@ All the same methods above work, simple pass a list as an argument.
|
|
90
90
|
my_model_instance.freeze_tag(as: "Web Design", list: "Skills")
|
91
91
|
```
|
92
92
|
|
93
|
+
##### Tagging while creating:
|
94
|
+
You can also use the same style/attributes to tag while creating instances
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
my_model_instance = MyModel.new(name: "MyModelName", freeze_tagged: [{
|
98
|
+
as: ["Cool", "Beans"],
|
99
|
+
list: "Ideas",
|
100
|
+
expire_others: true
|
101
|
+
}])
|
102
|
+
|
103
|
+
my_model_instance.save
|
104
|
+
```
|
105
|
+
|
93
106
|
#### Accessing tags:
|
94
107
|
|
95
108
|
All the current "active" tags as a simple array of strings.
|
data/lib/freeze_tag/tag.rb
CHANGED
data/lib/freeze_tag/taggable.rb
CHANGED
data/lib/freeze_tag/version.rb
CHANGED