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 +4 -4
- data/app/models/concerns/settingson/base.rb +10 -2
- data/lib/settingson/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: 3714cc41fe5d5e975dc279b5932e823f1eff1f7a
|
4
|
+
data.tar.gz: 845d81d1f66c297e7c13a8fbd7dedc6a79dec062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
data/lib/settingson/version.rb
CHANGED