settingson 1.2.14 → 1.2.15

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: 19e715aec9b96176d6cd7aebbda416bdf6cabb93
4
- data.tar.gz: aad2785eecaf7966cc7ae752de3726b2bf0c2ee3
3
+ metadata.gz: 3714cc41fe5d5e975dc279b5932e823f1eff1f7a
4
+ data.tar.gz: 845d81d1f66c297e7c13a8fbd7dedc6a79dec062
5
5
  SHA512:
6
- metadata.gz: 23b96dab3b7bcd2dae0131da6931c3010c77372f9e13fe733c569ac7ee24c97926278160bd36564c6d12d7550b20cdfb0f529b849d2930ebb3344e65e850eff7
7
- data.tar.gz: 02b22c73a47c579e89c30dbd85660f132872fbe513fd9fd4fd2a303a33e3ca063954c97d4274be91f93f5bd11da29248da52370c6fa659c94905f0b0b5bd4a46
6
+ metadata.gz: 5a5443af4e8162af19751d6ebc736070f6d8275edc1d51873c61494a4f0f322254348401c398b1d9a4578cfe35aebef5e83588390a9e8be16fa8c0e410a715f6
7
+ data.tar.gz: ffc6cb337dd18b59479cea8523f09c227c02f6ebe3b13f03ea947eea9e28dfe03febc1ea27266ec87ef99ac6c9aa0e7bdf4dc57425bcfd859f50a97436e26b65
@@ -33,8 +33,16 @@ module Settingson::Base
33
33
 
34
34
  else # getter
35
35
 
36
- @settingson ||= ''
37
- @settingson += ".#{symbol.to_s}"
36
+ if defined?(@settingson)
37
+ if @settingson.blank?
38
+ @settingson += "#{symbol.to_s}"
39
+ else
40
+ @settingson += ".#{symbol.to_s}"
41
+ end
42
+ else
43
+ @settingson = ''
44
+ end
45
+
38
46
 
39
47
  if record = self.class.find_by(key: @settingson)
40
48
  YAML.load(record.value)
@@ -1,3 +1,3 @@
1
1
  module Settingson
2
- VERSION = "1.2.14"
2
+ VERSION = "1.2.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: settingson
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - dan