tramway-admin 2.0 → 2.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/tramway/admin/records_controller.rb +1 -0
- data/lib/tramway/admin/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: 1e602a60fe22a20f37a92bd8394367a478aafd76322faada559a3a41fe146341
|
4
|
+
data.tar.gz: 01ae5f655caa7d8739522be9715caf07e9f2ac9622a68a5c56807d3d90c53c1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18e37c9857ed8846e50a8132a82425eda92c8c81fcdfa61ef4109c8de3a2a9822e9020f9a13578ef43b10d3f1e876d5dde46d1c095c4d8603f9e302a01059c02
|
7
|
+
data.tar.gz: 36754d82837a6164d8511fe125fb9ec8e7b972ee5300559554e770ba3c1499b82f9b6698c6219c398f622d26d1ff95e29593e852cee270683428956bed6d2538
|
data/README.md
CHANGED
@@ -55,6 +55,7 @@ class Tramway::Admin::RecordsController < ::Tramway::Admin::ApplicationControlle
|
|
55
55
|
if params[:record][:aasm_event].present?
|
56
56
|
if @record_form.model.send("may_#{params[:record][:aasm_event]}?")
|
57
57
|
@record_form.model.send("#{params[:record][:aasm_event]}!")
|
58
|
+
redirect_to params[:redirect].present? ? params[:redirect] : record_path(@record_form.model)
|
58
59
|
end
|
59
60
|
else
|
60
61
|
if @record_form.submit params[:record]
|