custom_counter_cache 0.1.7 → 0.1.8
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/custom_counter_cache/model.rb +8 -0
- data/lib/custom_counter_cache/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a41055a2c727874930c749e9f09bb0401fc83ee
|
4
|
+
data.tar.gz: 368a9a85d649eff26b58eac8f3e624f30ca5c03e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9612df52ce08ce46ae36f6a214d425b4025e83f75ffd6fb166c909df1ffc245f5e1c1502300dd80fb20a81c04f2916ad9079b9ee30c1c81abcc7c8faad0851b6
|
7
|
+
data.tar.gz: 24a2164264fd7b2d968e70dd6b9cf535d6cab6e14234c0f9e31a37f550237bb68a265df609028be5962ba74cd465522c0979e1adc3de36ed142fe9b2918b945c
|
@@ -35,6 +35,10 @@ module CustomCounterCache::Model
|
|
35
35
|
send "#{cache_column}=", block.call(self)
|
36
36
|
end
|
37
37
|
end
|
38
|
+
|
39
|
+
rescue StandardError => e
|
40
|
+
# Support Heroku's database-less assets:precompile pre-deploy step:
|
41
|
+
raise e unless ENV['DATABASE_URL'].to_s.include?('//user:pass@127.0.0.1/')
|
38
42
|
end
|
39
43
|
|
40
44
|
def update_counter_cache(association, cache_column, options = {})
|
@@ -70,6 +74,10 @@ module CustomCounterCache::Model
|
|
70
74
|
after_create method_name, options
|
71
75
|
after_update method_name, options
|
72
76
|
after_destroy method_name, options
|
77
|
+
|
78
|
+
rescue StandardError => e
|
79
|
+
# Support Heroku's database-less assets:precompile pre-deploy step:
|
80
|
+
raise e unless ENV['DATABASE_URL'].to_s.include?('//user:pass@127.0.0.1/')
|
73
81
|
end
|
74
82
|
end
|
75
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_counter_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cedric Howe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|