contentful_rails 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contentful_rails/cached_timestamps.rb +5 -1
- data/lib/contentful_rails/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: 7d31c2de99c296c1d385fa26c7e49c006d6a71cc
|
4
|
+
data.tar.gz: 4892c1491007e0942c9ca6e49d7a8ec063ccd469
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c40fd186add3603a47517b92ed2ff06d58c5b0e76f0e9d02c4206926b7a0418e99a2c5d3c4c935d5a8df02acd1bc1dcad23a0eec35fb4a2442d7a4d430abece
|
7
|
+
data.tar.gz: ef8b5b9a8fa766952fffb23a1840bc01481a0dcb3d665fb1e5c5623e756e063f8e53c41ef825a1dce46cb66b15ac9a7ea7426f6faa69e0b20dbadc5566f36929
|
@@ -9,7 +9,11 @@ module ContentfulRails
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def updated_at_with_caching
|
12
|
-
Rails.
|
12
|
+
if Rails.configuration.action_controller.perform_caching
|
13
|
+
Rails.cache.fetch(self.timestamp_cache_key) do
|
14
|
+
updated_at_without_caching
|
15
|
+
end
|
16
|
+
else
|
13
17
|
updated_at_without_caching
|
14
18
|
end
|
15
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Error Creative Studio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|