We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 378c7ca commit 22a607cCopy full SHA for 22a607c
lib/skinny_controllers/policy/base.rb
@@ -64,6 +64,10 @@ def read?(o = object)
64
# TODO: think of a way to override the authorized_via_parent functionality
65
def read_all?
66
return true if authorized_via_parent
67
+
68
+ # Might be deceptive...
69
+ return true if object.nil? || object.empty?
70
71
# This is expensive, so try to avoid it
72
# TODO: look in to creating a cache for
73
# these look ups that's invalidated upon
lib/skinny_controllers/version.rb
@@ -1,4 +1,4 @@
1
# frozen_string_literal: true
2
module SkinnyControllers
3
- VERSION = '0.10.5'
+ VERSION = '0.10.8'
4
end
0 commit comments