glib-web 0.5.79 → 0.5.80

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: 2acebe380e2301f6ee4546f77448bc547a3ad78ec3b806aaf343618a55c8d975
4
- data.tar.gz: 7b0b39cb99d79cf83c67bfa393e8d7750cfa29ffe713e16b18f2efab7bad1edd
3
+ metadata.gz: e353f7685e62fafe9e1b265db2226f4d9c81def42152c51a4fd87508f90b8341
4
+ data.tar.gz: e4d4636d3b385b49c89efd0120e0fec04b1e259527377fa0cacd87912d0a4cd1
5
5
  SHA512:
6
- metadata.gz: da360345328be2acff7ed0d59e84199d1f2341edc544bb7a47927f6501fb2f385c8d5866b077353744440278c64638517813fe57a42497e47291aa7545aeedf2
7
- data.tar.gz: 2e0880a2023c16ed03ad483827639b5c63cb009bd8fdb1617e09fd9492e015bad111823deb59e44a71188f19975b0c22a8d14bcd5cbe2c458e43f0197d542d7d
6
+ metadata.gz: 52525e97d08b324b45d6c695fe4c033f58594a1e267125220e043d4fb004cfd56c9c7afb91cbd6b92a4ea76321fb9544115e5b034823c9a5335e33aafcf3ee75
7
+ data.tar.gz: f108306d3c3994752caf3a52801b278c9512b49b05f2c94b8835f51af7ec76ba88570ce08b28daeef1abeb798d6caea0b33a240f62e93d6f4fa9b24e2152b075
@@ -23,9 +23,11 @@ module Glib
23
23
  end
24
24
  end
25
25
 
26
- should_exist_attributes.each do |attribute|
27
- if try(attribute).blank? && !['index'].include?(controller.action_name)
28
- raise "Attribute #{attribute} is blank, policy will not working properly"
26
+ if controller.user_signed_in?
27
+ should_exist_attributes.each do |attribute|
28
+ if try(attribute).blank? && !['index'].include?(controller.action_name)
29
+ raise "Attribute #{attribute} is blank, policy will not working properly"
30
+ end
29
31
  end
30
32
  end
31
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.79
4
+ version: 0.5.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''