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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cb9117a54e18025896a38d10349bbabe938271d
4
- data.tar.gz: 1f2f384e2f6ec21fa65b2eea166be9c0ee8475ab
3
+ metadata.gz: 87e54af89fb97764662f7b3ec09e69c3dd23a3a1
4
+ data.tar.gz: 3939ba3ae356c184d28071059b02a4d1a341c1ad
5
5
  SHA512:
6
- metadata.gz: 67269fd3dc91c95024b8692553d9263f22f2d27b4d71c056fbc30d3287625ebf0ba80ac1e30cba0d41e652c4171edf8633a8af4e21d0486bc66ae0d295aab991
7
- data.tar.gz: d3e83fff51649f85bb26630c365a67f65f1aeaefc0c71b98bcd80a52f8ebbfe190e6f19f13776b6f5377a3c80de9c9dc92b4e7c40da37a92f75c6e079ee70aad
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SkinnyControllers
3
- VERSION = '0.10.4'
3
+ VERSION = '0.10.5'
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.4
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.4
241
+ summary: SkinnyControllers-0.10.5
242
242
  test_files: []