skinny_controllers 0.10.1 → 0.10.2

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: d020916e740eec6d6047321f6797499deedd91a9
4
- data.tar.gz: 38f090da8386787f87ceaaa58ab37e6b8653cd38
3
+ metadata.gz: 88a478d9713a8699d9cb95ba18a3b5484b678112
4
+ data.tar.gz: 2589fbbf6e1a07dc300bcede1d45008d7123cc6e
5
5
  SHA512:
6
- metadata.gz: 985bd27768d1256eec6b4f1c9dff4da974e6d52e6163da4dd90b9e48416042412dfff300ae1aabec922e45274799204a6bfd3e056f84946caa1650b32189face
7
- data.tar.gz: d7ef3483025caa62727ca4eacce1be7300aee79ad1d428c5682985c666150e60c69c3d9d855b93da4b9e16bd5af883a7dbd2bc56d29ce4e11fec3494f248821d
6
+ metadata.gz: cc9476fe7c40cfee230dcc239e7e19ce45a11008903360ffae93d0e004963c713ef401d5313bc34479ad7d5b965cbb9a4e334e34532ad13114f18cd505206919
7
+ data.tar.gz: b104a3ec1b2a4df86badbb7f81a262ed7800735e08ef188fd05583964790241ec09eb1049b8d69ab2a55a8c33cb55b36d08966d179aca9ea4fe5e5ef5db3fa16
@@ -108,7 +108,7 @@ module SkinnyControllers
108
108
  end
109
109
 
110
110
  def check_allowed!(*args)
111
- raise DeniedByPolicy(*args.presence || action) unless allowed?
111
+ raise DeniedByPolicy.new(*args.presence || action) unless allowed?
112
112
  end
113
113
 
114
114
  # checks the policy
@@ -44,10 +44,6 @@ module SkinnyControllers
44
44
  def destroying?
45
45
  action == 'destroy'
46
46
  end
47
-
48
- def check_allowed!
49
- super(action)
50
- end
51
47
  end
52
48
  end
53
49
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SkinnyControllers
3
- VERSION = '0.10.1'
3
+ VERSION = '0.10.2'
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.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - L. Preston Sego III
@@ -238,6 +238,6 @@ rubyforge_project:
238
238
  rubygems_version: 2.5.1
239
239
  signing_key:
240
240
  specification_version: 4
241
- summary: SkinnyControllers-0.10.1
241
+ summary: SkinnyControllers-0.10.2
242
242
  test_files: []
243
243
  has_rdoc: