acts-as-taggable-on 8.0.0 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/db/migrate/7_add_tenant_to_taggings.rb +1 -1
- data/lib/acts_as_taggable_on/taggable/core.rb +4 -4
- data/lib/acts_as_taggable_on/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86ed71e7fcf66346a4afcaac85e33d318aafb9d6dcf58a787511161f57908be9
|
4
|
+
data.tar.gz: add5ececd0bd17f3942ee5cbd102e9de65a46ed74e1382c87cb7ba0e3a071d87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afdaa14e7584c82b022c0f763528eb09dbfb9e928fcefee8810649b7fc55d4d0035fb273d413d378404575aa7a49fa0d927042c170c86ae1af138674c752aa08
|
7
|
+
data.tar.gz: 79d100efe8a7f140f73058cb54ef365251642e9668fc492923ff09348a3f42e0c66ba011afcbe494393778b598d1fb2fc804727239d046491b66bb9d5d7d80aa
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,11 @@ Each change should fall into categories that would affect whether the release is
|
|
10
10
|
|
11
11
|
As such, _Breaking Changes_ are major. _Features_ would map to either major or minor. _Fixes_, _Performance_, and _Misc_ are either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding _Documentation_ (including tests) would be patch level.
|
12
12
|
|
13
|
+
### [v8.1.0) / 2021-06-19](https://github.com/mbleigh/acts-as-taggable-on/compare/v8.0.0...v8.1.0)
|
14
|
+
* Fixes
|
15
|
+
* [@ngouy Fix rollbackable tenant migrations](https://github.com/mbleigh/acts-as-taggable-on/pull/1038)
|
16
|
+
* [@ngouy Fix gem conflict with already existing tenant model](https://github.com/mbleigh/acts-as-taggable-on/pull/1037)
|
17
|
+
|
13
18
|
### [v8.0.0) / 2021-06-07](https://github.com/mbleigh/acts-as-taggable-on/compare/v7.0.0...v8.0.0)
|
14
19
|
* Features
|
15
20
|
* [@lunaru Support tenants for taggings](https://github.com/mbleigh/acts-as-taggable-on/pull/1000)
|
data/Gemfile
CHANGED
@@ -214,9 +214,9 @@ module ActsAsTaggableOn::Taggable
|
|
214
214
|
self.class.tag_types.map(&:to_s) + custom_contexts
|
215
215
|
end
|
216
216
|
|
217
|
-
def
|
217
|
+
def taggable_tenant
|
218
218
|
if self.class.tenant_column
|
219
|
-
|
219
|
+
public_send(self.class.tenant_column)
|
220
220
|
end
|
221
221
|
end
|
222
222
|
|
@@ -278,8 +278,8 @@ module ActsAsTaggableOn::Taggable
|
|
278
278
|
|
279
279
|
# Create new taggings:
|
280
280
|
new_tags.each do |tag|
|
281
|
-
if
|
282
|
-
taggings.create!(tag_id: tag.id, context: context.to_s, taggable: self, tenant:
|
281
|
+
if taggable_tenant
|
282
|
+
taggings.create!(tag_id: tag.id, context: context.to_s, taggable: self, tenant: taggable_tenant)
|
283
283
|
else
|
284
284
|
taggings.create!(tag_id: tag.id, context: context.to_s, taggable: self)
|
285
285
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts-as-taggable-on
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-06-
|
12
|
+
date: 2021-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|