has_setting 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/has_setting/ar_extensions.rb +3 -3
- data/lib/has_setting/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b7dd1f57f85031a2c3078a402651786ecc07900
|
4
|
+
data.tar.gz: d712740b678c37bc6f724cd5fc2374f5e19c0110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cfe4aeb31062a4ab5ced166ebaaf6a1e53d0a26c7e98ed263ee023dc8cb52b2a0c7f4ff99d9e52692144bc465a37c3237b5fffa8668db44640a9620adb31e8a
|
7
|
+
data.tar.gz: 5ebe5930b8eb9db4fc2ac4c0661446a75e9fcda63c8f7a6fb12b76390299d7fc0135ef06d65b9988f149aeaf902c08834f061012c8543b947359a243690947ef
|
@@ -88,9 +88,9 @@ module HasSetting
|
|
88
88
|
klass = self.class
|
89
89
|
option = klass.has_setting_options ? klass.has_setting_options[name] : nil
|
90
90
|
while option.nil? and
|
91
|
-
klass.
|
92
|
-
klass.
|
93
|
-
klass = klass.
|
91
|
+
klass.base_class != ActiveRecord::Base and
|
92
|
+
klass.base_class.respond_to?(:has_setting_options)
|
93
|
+
klass = klass.base_class
|
94
94
|
option = klass.has_setting_options[name]
|
95
95
|
end
|
96
96
|
option
|
data/lib/has_setting/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_setting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simplificator GmbH
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Stores settings as key/value pairs in a settings table and provides accessors
|
15
15
|
for them on the owning object
|