skinny_controllers 0.10.7 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 5b09d903f2246a395b6d5c11642baf7db4653001
|
|
4
|
+
data.tar.gz: 5fba5b3d52405b330c8e5e5ceecf11fd227ce6b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69ea10ceff193f86e2eb74768170ef645cffca0402818751a34a64f7ea40804cce6c3c6177322ce7af80fae58728aa4b1f15c3d341c97c6aa1b61b7fd97100ee
|
|
7
|
+
data.tar.gz: 85ccfbb5be2449a88769c84ee77e1f20b6ab0ac50d4a275a2f95f8eaba04a2902d0045879b4daf1e3ad60a306beed23336336fd9c5f370e1881497fffc83d45f
|
|
@@ -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.nil? || 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.8
|
|
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.8
|
|
239
239
|
signing_key:
|
|
240
240
|
specification_version: 4
|
|
241
|
-
summary: SkinnyControllers-0.10.
|
|
241
|
+
summary: SkinnyControllers-0.10.8
|
|
242
242
|
test_files: []
|