manage 1.3.39 → 1.3.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/manage/resource_controller.rb +4 -4
- data/lib/manage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55b0366591464b799f75fb79dd84a6e2b070a43f
|
4
|
+
data.tar.gz: 8c1dd88499b03fbdfffef45e1945d7006bede6bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849e86ad13dcc22403c1e9faddf7e66baa0f99a317807c9b6462edb0c99ae6534f45c0dea32780ead104e5b6727d368810af06c546589e57b2b03ad5513a2548
|
7
|
+
data.tar.gz: 28e022d038897e617ea559935687394c001cc726dbdec247561d2bf8a1bb5ad56449bb7d711c60e494c62ae9256809be53286531b946c3726db324d0b1627580
|
@@ -24,15 +24,15 @@ class Manage::ResourceController < Manage::ApplicationController
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def created
|
27
|
-
create!(:notice => "New #{resource_class} created!") do |
|
28
|
-
|
27
|
+
create!(:notice => "New #{resource_class} created!") do |success, failure|
|
28
|
+
success.html { redirect_to action: :index }
|
29
29
|
failure.html { render :action => :edit and return }
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
def update
|
34
|
-
update!(:notice => "#{resource_class} updated!") do |
|
35
|
-
|
34
|
+
update!(:notice => "#{resource_class} updated!") do |success, failure|
|
35
|
+
success.html { redirect_to action: :index }
|
36
36
|
failure.html { render :action => :edit and return }
|
37
37
|
end
|
38
38
|
end
|
data/lib/manage/version.rb
CHANGED