skinny_controllers 0.10.7 → 0.10.8

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
  SHA1:
3
- metadata.gz: ec8abdfb85c06f6eb9502eed56d1c9aaefe44dae
4
- data.tar.gz: 1cb87906f028c8e73e8c6cffb0d1c4e4ede94b4f
3
+ metadata.gz: 5b09d903f2246a395b6d5c11642baf7db4653001
4
+ data.tar.gz: 5fba5b3d52405b330c8e5e5ceecf11fd227ce6b2
5
5
  SHA512:
6
- metadata.gz: 93867fac825426ab77574c718b2a8b4027dc3c32a2c0e72dd7764757c49e2a612e87aa1445f217e1a160534cb7f72859e72c4e771e3a5e56a3859f60f3300eab
7
- data.tar.gz: 89bc46531b3fa9fe7a0c1dac5cc7f877181814a0a457460d88fe8477ce145d782ecd466d7009c8ec546889a76a3fde7706f6fd6d01ab723de6462ad59639ef7a
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SkinnyControllers
3
- VERSION = '0.10.7'
3
+ VERSION = '0.10.8'
4
4
  end
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.7
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.7
241
+ summary: SkinnyControllers-0.10.8
242
242
  test_files: []