settingson 1.2.15 → 1.2.16
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 +2 -7
- 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: b06b4c3ba24415f2640a9eebc5b541a09601a698
|
4
|
+
data.tar.gz: a825f5b9dfd83ffae56896183a33000b4e2292ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca57e65a6006cac0c3b5e69a9310489b9d758d1da300da418a72bb82c968bc48efdca5a9e432051202095f079c911290bcc271d4237fd6b54ba62aa9e518cf7c
|
7
|
+
data.tar.gz: 87f6f855da0750f47a48fe1090772df7d05c0394e05a3e884f0b928f92aea7165b5e95fcceeb0c2788cf9556ce2bb8569a1f1b521fdcf8fc27353924fefb2235
|
@@ -33,16 +33,11 @@ module Settingson::Base
|
|
33
33
|
|
34
34
|
else # getter
|
35
35
|
|
36
|
-
if defined?(@settingson)
|
37
|
-
if @settingson.blank?
|
36
|
+
if not defined?(@settingson) or @settingson.blank?
|
38
37
|
@settingson += "#{symbol.to_s}"
|
39
|
-
else
|
40
|
-
@settingson += ".#{symbol.to_s}"
|
41
|
-
end
|
42
38
|
else
|
43
|
-
|
39
|
+
@settingson += ".#{symbol.to_s}"
|
44
40
|
end
|
45
|
-
|
46
41
|
|
47
42
|
if record = self.class.find_by(key: @settingson)
|
48
43
|
YAML.load(record.value)
|
data/lib/settingson/version.rb
CHANGED