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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acff54ce8df7277286e663152c3456dd299d9f6e
4
- data.tar.gz: fa9169f868f67296d300a09a7a0951f33b9c5c11
3
+ metadata.gz: 7d31c2de99c296c1d385fa26c7e49c006d6a71cc
4
+ data.tar.gz: 4892c1491007e0942c9ca6e49d7a8ec063ccd469
5
5
  SHA512:
6
- metadata.gz: a99d3187b7e5f7160230c9b1b21f21cfba259a53d4d8b98e1b109a4916da637d46e3d6682ace25ef2c6882d4d3ce9ef280e6d003ba65668644a3269d3d743ed9
7
- data.tar.gz: ac698630aae0f9b76f5d6c4c5042a8888dfbde5bd7be2876f2a1ced92299bf4760dcdae98f078a6c4163122794cb30a6f7735698b82cd2f7b679d30d94bed6e7
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.cache.fetch(self.timestamp_cache_key) do
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
@@ -1,3 +1,3 @@
1
1
  module ContentfulRails
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  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
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: 2014-12-31 00:00:00.000000000 Z
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails