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 +4 -4
- data/lib/cancancan/abstract_resource_controller.rb +1 -7
- data/lib/cancancan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bac3e11e0e5593a7f03f953d272be33afd5473a3e46a32042571abb887c4bf8f
|
4
|
+
data.tar.gz: 28f77a8bc7014c052f15b0e296fa43bec48d9292530b0a9a80fb943cd506f383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/cancancan/version.rb
CHANGED