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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06abd9e67e15be7d9f9c9ba43a6584fa422148ed0ca7c6cc45c56aeaa9676076
|
4
|
+
data.tar.gz: f85e976430756103cac6862b6a54c05672515a880d54c20be9da543233b8b774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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.
|
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.
|