cancancan_resource_controller 1.1.0 → 1.1.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
  SHA256:
3
- metadata.gz: bac3e11e0e5593a7f03f953d272be33afd5473a3e46a32042571abb887c4bf8f
4
- data.tar.gz: 28f77a8bc7014c052f15b0e296fa43bec48d9292530b0a9a80fb943cd506f383
3
+ metadata.gz: cbc8db66f3f0e364734f43f8c04182b3873cd4225d0f65317c5eac9dd7a2cf8b
4
+ data.tar.gz: 8029c9a3d8f99f09fb59334d90ac20e2804eca87c356d8ce0b62c49c9c5e6683
5
5
  SHA512:
6
- metadata.gz: 72e083dc4e891a7c5e37184bf03fa271794647db29b370c3a5b6b6dfdf7d63075b6c48d2a970b1f2d9e5bff41c694fff403563862908d5e75db8fb63e866e92f
7
- data.tar.gz: 908b0268460e89966543a5b2371e7a61f07ed8d2f45538a576f80cd5424c1a67bf6fdcbbea5754f0c5ccc7cfbd2826d3ed0ff838f19349ee7374da75cca38ccd
6
+ metadata.gz: 937c3eec870a1666b17da0424ba8ac388302da1ca7bcaaeabd2bd2b23887c9f6917dfac6c5456dac1ba6b2ff1f417fa834b86857b0ea9a1fdd70df15ad1f6635
7
+ data.tar.gz: 68bd48ab82b33f65b2b41ff2bdcbb55b616130b7a99f308c9cc91b878fc9210b51aacd4d39a211892fc1e8501b5cab6edf87751edde2af77761dacda0a73c0b8
@@ -94,8 +94,7 @@ module CanCanCan
94
94
 
95
95
  def new
96
96
  authorize! :create, @resource_class
97
- @resource ||= @resource_class.new(resource_params)
98
- authorize! :create, @resource
97
+ @resource ||= @resource_class.new
99
98
 
100
99
  respond_with_resource
101
100
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancancan_resource_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - benjamin.dana.software.dev@gmail.com