cancancan_resource_controller 1.1.1 → 2.0.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 -19
- 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: d0568e01a0d4c6c54da23f5222744db7ddb707ea7665829db91eaa1cf75680e4
|
4
|
+
data.tar.gz: b3d63361898c8c91f429cd75aee4923c1716b68c09c482ba0785080d9314cf0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a0e938fcd3eb7d2a5483e658b75cf4cb28e12f1aae9b1455b006b8c3d455001f5fd6aa4836d83ad51dc645124c5c4a36e6ad4b823945077a1a200448a09f28
|
7
|
+
data.tar.gz: a4f8c3efc19b10d56ad8073b95de0cdea429fc55709ae44e5b258f86c2210124fc22bd982559ddb94a8bab1109a97bcb9300680c105c4277879ba17e7d4ed4f1
|
@@ -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
|
data/lib/cancancan/version.rb
CHANGED