rails-settings-cached 0.6.0 → 0.6.1

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: fa6d7bd1e608d80ee9995d8f1393e9fce6a19d2f
4
- data.tar.gz: d47dd443d8e1afe1ea8dde4e7e10acbff1aafd3c
3
+ metadata.gz: 77ee4761ccc2fa3dcd3b594e8de0878dfff7737c
4
+ data.tar.gz: 453fbd403e16fd91823f64853c209e9742c20ef2
5
5
  SHA512:
6
- metadata.gz: 0101c4f85fec7b475e5306bc94882c39ce7711f66b3cdc5c5175aedc333a138503388ba56d4dee0d956bb8ce2af396c030e04fcee89ef8d75749fc932e8259dd
7
- data.tar.gz: 892a9665b231016b4c2ea079afdd94a01895169795ca1637cc23e7a2bf007823b5400d37fef0d400a2ca40204618d5dbe2c2a6b391fa7f4b53dee59db91b7373
6
+ metadata.gz: 498d13784837ecb3ad5b9ee48ff73a9ca19acb0086a950179c34e8c130056aa02af31ef3acab41a0e67eb715d41462b64cdec206bdeb35222b7562f3354c4de2
7
+ data.tar.gz: 4a054dedbd4d73dcdb571e658e9ecc82dcb0a0e1d56f0e948040d8b57c0416879183cac1937fa2b99e5c00a2a284099fba1dfb93276007094b552fe08e9c17ac
@@ -104,7 +104,7 @@ module RailsSettings
104
104
  end
105
105
 
106
106
  def object(var_name)
107
- thing_scoped.where(var: var_name.to_s).first
107
+ table_exists? && thing_scoped.where(var: var_name.to_s).first
108
108
  end
109
109
 
110
110
  def thing_scoped
@@ -1,7 +1,7 @@
1
1
  module RailsSettings
2
2
  class << self
3
3
  def version
4
- "0.6.0"
4
+ "0.6.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-settings-cached
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee