feature_setting 1.6.2 → 1.6.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
  SHA256:
3
- metadata.gz: 53ffa8db4e5e12eab93ef6a84df1d16c297459643d84139b3f34bf15eed7f88a
4
- data.tar.gz: 9f88e1e4672bc51d4d1a739e510ffbc448448422870a2b14873318fe49710c44
3
+ metadata.gz: 06abd9e67e15be7d9f9c9ba43a6584fa422148ed0ca7c6cc45c56aeaa9676076
4
+ data.tar.gz: f85e976430756103cac6862b6a54c05672515a880d54c20be9da543233b8b774
5
5
  SHA512:
6
- metadata.gz: fbe6488bc9eb17cfb6812ce5be36b7d58368436938be2e18ef5105695412a2d4786852befedec892f4b72137a227a4166957bad89a0bedc4de6d8836c3f24f4e
7
- data.tar.gz: 2753e2457b391937abd777ff998a574cf765052d7de782e52eba986b3d5b33c9561186aaf46fc0fe5070223afc9d02684d41e5401873f16e72ecbda13f4783df
6
+ metadata.gz: 85b95a1a26932bcd1ce80eeecfc8055d07b8f38e88af309103f9cf175b7eab5daf32e911f29b64e4ab02bdb0095481e6fbfa550799e7895ed27e40093fe693b4
7
+ data.tar.gz: 7361fa1fdf00eba9a959e24709bca4bb0b15c2903f322c8d4d4da60cb2c2a321fe506e3d2ef80f7d6151f57f7adf44c9608bdf11b3cbc892bba1587ca47be8d9
@@ -54,7 +54,7 @@ module FeatureSetting
54
54
  def define_checker_method(key, &block)
55
55
  block = Proc.new do
56
56
  record = self.where(key: key, klass: klass).first
57
- record.enabled
57
+ record ? record.enabled : false
58
58
  end unless block_given?
59
59
  define_singleton_method("#{key}_enabled?") { block.call }
60
60
  end
@@ -1,3 +1,3 @@
1
1
  module FeatureSetting
2
- VERSION = "1.6.2"
2
+ VERSION = "1.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_setting
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indro De
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-05 00:00:00.000000000 Z
11
+ date: 2021-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.0.3
184
+ rubygems_version: 3.2.3
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: A lightweight feature/setting DSL for Rails applications.