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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b5e4e8c00bef9fc12326fda7ded30a3914b6581
4
- data.tar.gz: 77143280aa89b126dc597ff3557cd8b90ac3f4c7
3
+ metadata.gz: 2b7dd1f57f85031a2c3078a402651786ecc07900
4
+ data.tar.gz: d712740b678c37bc6f724cd5fc2374f5e19c0110
5
5
  SHA512:
6
- metadata.gz: 7ecc98c268a18f508c27102adfca36d7309e85143d57dc67278721a651a613dbc13e4280c3b2c52ab6a1b72738d185c933dc2c37e4b0200dd3c87a81efa99b35
7
- data.tar.gz: bd4d486cd5a7de68366b619e4052d98de13f82c5bd87f311c7abb5061c493948601ff1f5b1507395f884eb8eb97c95911324ca59608f19c2096daf73678e084e
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.superclass != ActiveRecord::Base and
92
- klass.superclass.respond_to?(:has_setting_options)
93
- klass = klass.superclass
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
@@ -1,3 +1,3 @@
1
1
  module HasSetting
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.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: 2016-05-18 00:00:00.000000000 Z
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