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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3714cc41fe5d5e975dc279b5932e823f1eff1f7a
4
- data.tar.gz: 845d81d1f66c297e7c13a8fbd7dedc6a79dec062
3
+ metadata.gz: b06b4c3ba24415f2640a9eebc5b541a09601a698
4
+ data.tar.gz: a825f5b9dfd83ffae56896183a33000b4e2292ae
5
5
  SHA512:
6
- metadata.gz: 5a5443af4e8162af19751d6ebc736070f6d8275edc1d51873c61494a4f0f322254348401c398b1d9a4578cfe35aebef5e83588390a9e8be16fa8c0e410a715f6
7
- data.tar.gz: ffc6cb337dd18b59479cea8523f09c227c02f6ebe3b13f03ea947eea9e28dfe03febc1ea27266ec87ef99ac6c9aa0e7bdf4dc57425bcfd859f50a97436e26b65
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
- @settingson = ''
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)
@@ -1,3 +1,3 @@
1
1
  module Settingson
2
- VERSION = "1.2.15"
2
+ VERSION = "1.2.16"
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.15
4
+ version: 1.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - dan