settingson 1.2.12 → 1.2.13

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: b45e60730f89bf47e5758708491459f63e10ba85
4
- data.tar.gz: 840ad3c212a9499cb5b3d01abae616eb35b3eca5
3
+ metadata.gz: 095b4f7ba5e2556429c7a79f8496c65eb83497a6
4
+ data.tar.gz: 9a7f038eace50e8a9b26963a8d3a59cb3e2bfbf4
5
5
  SHA512:
6
- metadata.gz: 244d1072fced9f3eac923f2ce3e7c2abe34eb0fe1adc05a834264493b459a2c5c52c640e508c8f101118cf1a62388eac88f57882b1839e6df72c60336561f078
7
- data.tar.gz: 27a139bbb354c976aec63f7b3ba36f5cd741ae60d804cb24acad9ac1d70c99ff0d796a900f7e305ba9fcc316f623c0c24b279eb9e45b564375698c84d9e56746
6
+ metadata.gz: 04c86c408364174762b305055b6cb3c8fb25a8912d961106bc2abb794ab2a5502dc28c61e1123dd02accdddbec305c6ea3670bf1285ad313e214ef5ec655d6a2
7
+ data.tar.gz: 94b1408c83f44ac7e3854a4c9619aa63faa993ea76a39a0a212b83a9ab935d7613e79626b80818781d7fa1734abcba6c0c3463fed752e79aedcf0665c6ba9d8c
@@ -33,7 +33,8 @@ module Settingson::Base
33
33
 
34
34
  else # getter
35
35
 
36
- @settingson += ".#{symbol.to_s}"
36
+ @settingson ||= '' || "#@settingson}.#{symbol.to_s}"
37
+
37
38
  if record = self.class.find_by(key: @settingson)
38
39
  YAML.load(record.value)
39
40
  else
@@ -1,3 +1,3 @@
1
1
  module Settingson
2
- VERSION = "1.2.12"
2
+ VERSION = "1.2.13"
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.12
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - dan