Skip to content

Commit 22a607c

Browse files
committed
I may need to commit from my other machine
1 parent 378c7ca commit 22a607c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/skinny_controllers/policy/base.rb

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ def read?(o = object)
6464
# TODO: think of a way to override the authorized_via_parent functionality
6565
def read_all?
6666
return true if authorized_via_parent
67+
68+
# Might be deceptive...
69+
return true if object.nil? || object.empty?
70+
6771
# This is expensive, so try to avoid it
6872
# TODO: look in to creating a cache for
6973
# these look ups that's invalidated upon

lib/skinny_controllers/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# frozen_string_literal: true
22
module SkinnyControllers
3-
VERSION = '0.10.5'
3+
VERSION = '0.10.8'
44
end

0 commit comments

Comments
 (0)