setting_accessors 0.0.3 → 0.0.4

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: 2feddebf42f204a1bfc734b7d5102d3279672665
4
- data.tar.gz: 22e487c0075cfa1c8cac7de98f54774eee68b3ab
3
+ metadata.gz: 1ed332f105a50d26ae337675c092e529bf9ce7d0
4
+ data.tar.gz: edb4613293773b8bfa27dd9402beaecc2a6dbbd7
5
5
  SHA512:
6
- metadata.gz: 8d0bcdb2ec16834a20339e3911c996b6ac84c00cfb8d6f6cb4e66ff5f97311e2103be76e6aa1dfe07e7723752696cda9f83277d001b1deac7bcd70ea3b36ba6c
7
- data.tar.gz: 9a6b3249cc6dc734d6cd5e69b5470a720bb1783f8d7d99f9a39103cc51a740382de8cb79a932fdd8045f97fc6baa37e95c1527bf97edc7ea2e0132510833511a
6
+ metadata.gz: d87bfe17b531e82471548437ce5affd9a593fe38d32cca6592eeb0ead32ac5974f195cedce90b5923c02d8ca53f932d0770d8215f3107bc07a98efe989e4e140
7
+ data.tar.gz: d024b156d3ddc3fa7c94a6895765ebee666b0b9893d890be0fa203c5a49e209997a8ae3987f67073fc64088be50df201d74062727bcc2100c7f372ad82c82370
@@ -36,6 +36,9 @@ module SettingAccessors::Integration
36
36
  # setting and return +nil+ if none was specified previously.
37
37
  #
38
38
  def setting_accessor(setting_name, options = {})
39
+ #If the database table does not yet exist,
40
+ return unless self.table_exists?
41
+
39
42
  fallback = options.delete(:fallback)
40
43
 
41
44
  SettingAccessors::Internal.set_class_setting(self, setting_name, options)
@@ -1,3 +1,3 @@
1
1
  module SettingAccessors
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setting_accessors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Exner