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 +4 -4
- data/lib/setting_accessors/integration.rb +3 -0
- data/lib/setting_accessors/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ed332f105a50d26ae337675c092e529bf9ce7d0
|
4
|
+
data.tar.gz: edb4613293773b8bfa27dd9402beaecc2a6dbbd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|