has_setting 1.0.2 → 1.0.3
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 +4 -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: 343a6665b03e21db5cd725cd2b546bf2bf8864ba
|
4
|
+
data.tar.gz: 5cab867d80e1c46c3865aa5b30044fdd9c8bc699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f55178fd52dfabf260aac58fef99150bc003ec465adf9c20a877c3095b5a219b7ae5e15c87c2c1323b731959c1c456d850bbf457edbf6b731f376b57f657b32b
|
7
|
+
data.tar.gz: 642cd2d9ee5760ccfba79259e69a9f8c3c69f9ecb66d00e04410fd4d00c0c0e87cbbfd963a4d2530402afc11dfcaa4c33e9b1b7e6e2816b8f4d915a9432149fd
|
@@ -88,11 +88,11 @@ 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.superclass != ActiveRecord::Base
|
92
|
-
klass.superclass.respond_to?(:has_setting_options) and
|
93
|
-
klass.superclass.has_setting_options
|
91
|
+
klass.superclass != ActiveRecord::Base
|
94
92
|
klass = klass.superclass
|
95
|
-
|
93
|
+
if klass.respond_to?(:has_setting_options) and klass.has_setting_options
|
94
|
+
option = klass.has_setting_options[name]
|
95
|
+
end
|
96
96
|
end
|
97
97
|
option
|
98
98
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simplificator GmbH
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
60
|
rubyforge_project:
|
61
|
-
rubygems_version: 2.
|
61
|
+
rubygems_version: 2.6.12
|
62
62
|
signing_key:
|
63
63
|
specification_version: 4
|
64
64
|
summary: Simple setting extension to AR
|