acts_as_favoritor 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2875795f7875bb8dee5c728af27a406a6808b0eda78a42f0349824362ac3e26
|
4
|
+
data.tar.gz: 1dc45485b56e56d9df9a20f61e1044bbe1dbcf83731dbdf5beeb621aa768cc2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb5ba1b48c7c76ec581ae6b3c65bde08ed91a2946f01a51c5da3c9daf8d744d461ee2973ebae4baf2fdc39f695498f58eeddf8d7a95e9a14d86aeb71e48c6589
|
7
|
+
data.tar.gz: 203b76be7a03c1d133345165e7d014164d2910d326991939e3314951b3f3e15d88a37118f2ece835d7a74906ab7ce1f692c94e1983179b994c3e3c4f4bc6917f
|
@@ -13,7 +13,8 @@ module ActsAsFavoritor
|
|
13
13
|
include ActsAsFavoritor::Favoritable::InstanceMethods
|
14
14
|
include ActsAsFavoritor::FavoritorLib
|
15
15
|
|
16
|
-
return unless ActsAsFavoritor.configuration
|
16
|
+
return unless ActsAsFavoritor.configuration&.cache
|
17
|
+
|
17
18
|
serialize :favoritable_score, Hash
|
18
19
|
serialize :favoritable_total, Hash
|
19
20
|
end
|
@@ -13,6 +13,7 @@ module ActsAsFavoritor
|
|
13
13
|
include ActsAsFavoritor::FavoritorLib
|
14
14
|
|
15
15
|
return unless ActsAsFavoritor.configuration&.cache
|
16
|
+
|
16
17
|
serialize :favoritor_score, Hash
|
17
18
|
serialize :favoritor_total, Hash
|
18
19
|
end
|
@@ -132,6 +133,7 @@ module ActsAsFavoritor
|
|
132
133
|
favoritable.save!
|
133
134
|
end
|
134
135
|
next unless self != favoritable && scope != 'all'
|
136
|
+
|
135
137
|
params = {
|
136
138
|
favoritable_id: favoritable.id,
|
137
139
|
favoritable_type: parent_class_name(favoritable),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_favoritor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -152,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
|
-
|
156
|
-
rubygems_version: 2.7.6
|
155
|
+
rubygems_version: 3.0.3
|
157
156
|
signing_key:
|
158
157
|
specification_version: 4
|
159
158
|
summary: A Rubygem to add Favorite, Follow, Vote, etc. functionality to ActiveRecord
|