trendable 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/concerns/trendable.rb +1 -0
- data/lib/trendable/version.rb +1 -1
- data/lib/workers/fade_out_trend_power_worker.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: e33b5f509a93d24c5c1d0dc5facb22c2645f3b0a
|
4
|
+
data.tar.gz: 2c2bc2297ffe8e25c39e2c5adb8984335360a1e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac267a08e54525dc3fd0c8d714c419c782c3a226f5c20aee4a2346685a1ea4a83b6e7fcd626cf067e2c80c0f5ee2caf3c69b887905551aea3603ded06b6706f
|
7
|
+
data.tar.gz: 5ab690225845da9bcde22de113c589cad3e95c80b59f1258eb66096112ae6c60e0386deaed144ad32abd78345e845fbdaa9bd3b686ceee45ddb5c100377c1b7a
|
data/lib/concerns/trendable.rb
CHANGED
data/lib/trendable/version.rb
CHANGED
@@ -7,7 +7,7 @@ class FadeOutTrendPowerWorker
|
|
7
7
|
ActiveRecord::Base.descendants.each do |klass|
|
8
8
|
if klass.respond_to?( "has_trendable_concern?".to_sym )
|
9
9
|
|
10
|
-
klass.update_all( "trending_power = trending_power * #{multiplier}")
|
10
|
+
klass.items_to_fade_trending_power.update_all( "trending_power = trending_power * #{multiplier}")
|
11
11
|
else
|
12
12
|
puts "#{klass.to_s} does not have trendable concern"
|
13
13
|
end
|