ft_gem 3.0.2 → 3.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/ft_gem/view/helpers.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb7655fa5e38795c63e69e1dccf1e101d2ddf5f2c52885a96264f86990e7fb47
|
4
|
+
data.tar.gz: 8595affca30c4dfea73bb9ffb895d4b3215205db4e0f08be700f0a7799ce891c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f065ba0cfa3356eda13b7df33da4f833caaea8cca77e9561b704a70b348934ff92d18d4c9bbaead6522f0f892ce23dcf8975fdcbd8d084aa00bfd849077c65c
|
7
|
+
data.tar.gz: f34ab23b8a0612d84dfa65c5967c9a29e9b1d5e6562dfede89928cc24cb432aac50147c2dbab526bd11d9fbe9a715183a7f595b71f29a81a76e4bc4db1097c03
|
data/lib/ft_gem/view/helpers.rb
CHANGED
@@ -4,7 +4,7 @@ module FtGem
|
|
4
4
|
def self.status(name:)
|
5
5
|
toggle = FtShared.fetch(name: name)
|
6
6
|
return false if toggle.nil?
|
7
|
-
toggle['attributes']['percentage'].to_i == 100
|
7
|
+
toggle['data']['attributes']['percentage'].to_i == 100
|
8
8
|
rescue StandardError => e
|
9
9
|
Rails.logger.error "FtHelper::status error #{e.backtrace}"
|
10
10
|
false
|