has_setting 1.0.1 → 1.0.2
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 +5 -4
- 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: 4b416313d0c2dc0f9bfba3bce000ad4c4d3c84c3
|
4
|
+
data.tar.gz: 487f37fa0c865398be113a0b4c13498b297f679c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eecc6cad9e3bdaa1448ea6dce865ecee8620d3701e7ea677a67cffdf16de466c7a5a166fa9aaf55537b9f5f62c8876cb0ef917e12fc4097eb339c2562e2b5ff7
|
7
|
+
data.tar.gz: db6e2953766e36a18599773baa89d666b6432b6cb2282e6aaa789284cb30eeccd4e24f4c69cdb2499c71c20101c99a3e69665384713e3b483269018ed79ab39e
|
@@ -88,12 +88,13 @@ 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
|
-
|
91
|
+
klass.superclass != ActiveRecord::Base and
|
92
|
+
klass.superclass.respond_to?(:has_setting_options) and
|
93
|
+
klass.superclass.has_setting_options
|
94
|
+
klass = klass.superclass
|
94
95
|
option = klass.has_setting_options[name]
|
95
96
|
end
|
96
97
|
option
|
97
98
|
end
|
98
99
|
|
99
|
-
end
|
100
|
+
end
|
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.2
|
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: 2017-05-
|
12
|
+
date: 2017-05-17 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
|