cancancan_resource_controller 1.1.1 → 1.1.2
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 -19
- 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: cbc8db66f3f0e364734f43f8c04182b3873cd4225d0f65317c5eac9dd7a2cf8b
|
4
|
+
data.tar.gz: 8029c9a3d8f99f09fb59334d90ac20e2804eca87c356d8ce0b62c49c9c5e6683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 937c3eec870a1666b17da0424ba8ac388302da1ca7bcaaeabd2bd2b23887c9f6917dfac6c5456dac1ba6b2ff1f417fa834b86857b0ea9a1fdd70df15ad1f6635
|
7
|
+
data.tar.gz: 68bd48ab82b33f65b2b41ff2bdcbb55b616130b7a99f308c9cc91b878fc9210b51aacd4d39a211892fc1e8501b5cab6edf87751edde2af77761dacda0a73c0b8
|
@@ -96,25 +96,7 @@ module CanCanCan
|
|
96
96
|
authorize! :create, @resource_class
|
97
97
|
@resource ||= @resource_class.new
|
98
98
|
|
99
|
-
|
100
|
-
current_ability,
|
101
|
-
action_name,
|
102
|
-
@resource,
|
103
|
-
clean_parameter_data(params)
|
104
|
-
)
|
105
|
-
|
106
|
-
if service.call
|
107
|
-
respond_with_resource
|
108
|
-
else
|
109
|
-
begin
|
110
|
-
Rails.logger.warn "Failed object validations: could not new #{@resource_class}: #{@resource.errors.full_messages}"
|
111
|
-
respond_with_resource_invalid
|
112
|
-
rescue Exception => e
|
113
|
-
Rails.logger.error "CanCanCanResourceController - Caught Internal Server Error: " + e.class.to_s + ': ' + e.message
|
114
|
-
Rails.logger.error Rails.backtrace_cleaner.clean(e.backtrace).join("\n").to_s
|
115
|
-
respond_with_resource_error
|
116
|
-
end
|
117
|
-
end
|
99
|
+
respond_with_resource
|
118
100
|
end
|
119
101
|
|
120
102
|
def edit
|