cancancan_resource_controller 1.0.1 → 1.1.0

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: eee99830d75b2311be4016ca35dce550688103ea8256a919b2c3f6230a3d8a22
4
- data.tar.gz: c55c835c8ffd5350d45e246063fc3722e00a604138e9369ea93398c010de6819
3
+ metadata.gz: bac3e11e0e5593a7f03f953d272be33afd5473a3e46a32042571abb887c4bf8f
4
+ data.tar.gz: 28f77a8bc7014c052f15b0e296fa43bec48d9292530b0a9a80fb943cd506f383
5
5
  SHA512:
6
- metadata.gz: e4eecffac11d43c86bf6c1a65e45476c60b5927fd201940c0863b5aa1e489e7de2377b23f57f511d42fffda88f2f577dffc53c18e3ec9720f072b5603bab667d
7
- data.tar.gz: c784109abe07fc8039d96d4eb023b96d72e74fec52af54e2161a127aed238f805a8523bf97dda293823b0d202541330267e6bde522b42651c4c3dbc5750272f2
6
+ metadata.gz: 72e083dc4e891a7c5e37184bf03fa271794647db29b370c3a5b6b6dfdf7d63075b6c48d2a970b1f2d9e5bff41c694fff403563862908d5e75db8fb63e866e92f
7
+ data.tar.gz: 908b0268460e89966543a5b2371e7a61f07ed8d2f45538a576f80cd5424c1a67bf6fdcbbea5754f0c5ccc7cfbd2826d3ed0ff838f19349ee7374da75cca38ccd
@@ -105,13 +105,7 @@ module CanCanCan
105
105
  @resource ||= @resource_class.find(params[:id])
106
106
  authorize! :update, @resource
107
107
 
108
- respond_to do |format|
109
- format.html # Renders the default
110
- format.json { render json: @resources }
111
- format.xml { render xml: @resources }
112
- format.csv # Renders the default
113
- format.xlsx # Renders the default
114
- end
108
+ respond_with_resource
115
109
  end
116
110
 
117
111
  def create
@@ -1,5 +1,5 @@
1
1
  module CanCanCan
2
2
  module AbstractResourceController
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  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.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - benjamin.dana.software.dev@gmail.com