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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b416313d0c2dc0f9bfba3bce000ad4c4d3c84c3
4
- data.tar.gz: 487f37fa0c865398be113a0b4c13498b297f679c
3
+ metadata.gz: 343a6665b03e21db5cd725cd2b546bf2bf8864ba
4
+ data.tar.gz: 5cab867d80e1c46c3865aa5b30044fdd9c8bc699
5
5
  SHA512:
6
- metadata.gz: eecc6cad9e3bdaa1448ea6dce865ecee8620d3701e7ea677a67cffdf16de466c7a5a166fa9aaf55537b9f5f62c8876cb0ef917e12fc4097eb339c2562e2b5ff7
7
- data.tar.gz: db6e2953766e36a18599773baa89d666b6432b6cb2282e6aaa789284cb30eeccd4e24f4c69cdb2499c71c20101c99a3e69665384713e3b483269018ed79ab39e
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 and
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
- option = klass.has_setting_options[name]
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
@@ -1,3 +1,3 @@
1
1
  module HasSetting
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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.5.1
61
+ rubygems_version: 2.6.12
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: Simple setting extension to AR