skinny_controllers 0.10.4 → 0.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/skinny_controllers/policy/base.rb +4 -0
- data/lib/skinny_controllers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e54af89fb97764662f7b3ec09e69c3dd23a3a1
|
4
|
+
data.tar.gz: 3939ba3ae356c184d28071059b02a4d1a341c1ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e9341149583af47cdf84bfca4b2678cda32570404c67ce5c5feed4cabb51f67b6870f968ed18a5bd4c57c828b61446577f279c4fba5013e9e9d7eb21beaea33
|
7
|
+
data.tar.gz: be18a8fb43babfba7d76f26f77b0242d20e0b218ff24d59afb3eb2684d5c25e6e735dc6370c42f9be49ea5517089ff8f14849782714e5f7686f25b0999d405a1
|
@@ -64,6 +64,10 @@ module SkinnyControllers
|
|
64
64
|
# TODO: think of a way to override the authorized_via_parent functionality
|
65
65
|
def read_all?
|
66
66
|
return true if authorized_via_parent
|
67
|
+
|
68
|
+
# Might be deceptive...
|
69
|
+
return true if object.empty?
|
70
|
+
|
67
71
|
# This is expensive, so try to avoid it
|
68
72
|
# TODO: look in to creating a cache for
|
69
73
|
# these look ups that's invalidated upon
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skinny_controllers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- L. Preston Sego III
|
@@ -238,5 +238,5 @@ rubyforge_project:
|
|
238
238
|
rubygems_version: 2.6.11
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
|
-
summary: SkinnyControllers-0.10.
|
241
|
+
summary: SkinnyControllers-0.10.5
|
242
242
|
test_files: []
|