tramway-admin 1.29.1.3 → 1.29.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b59a73d88e6909a7e355dd778bae9f36e5fd6f28b981f548aea85ab07c4ecedd
|
4
|
+
data.tar.gz: 1f0bfa52f18e76ae53b3859fa820e617073f7efcb4821ae429211809ebbef80d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c003742f10c1c1fce366e32b444f60137f64b7fbc823da6d5b7e4887c012345b834ee9355eeccd7ef3f8d79548526b0d7188f3b013bd90437550d6472a3f9948
|
7
|
+
data.tar.gz: a7fd90211fb9c081484e1032d1af32fc3aa018d38f1f2122b3097d8105d210c96a9c27935fcbbb41d992afa363df0cd4c571a621f1401cc078b59161d8f26c96
|
@@ -6,7 +6,7 @@ module Tramway::Admin
|
|
6
6
|
if model_class.active.first.present?
|
7
7
|
@singleton = decorator_class.decorate model_class.active.first
|
8
8
|
else
|
9
|
-
@singleton_form =
|
9
|
+
@singleton_form = admin_form_class.new model_class.new
|
10
10
|
render :new
|
11
11
|
nil
|
12
12
|
end
|
@@ -17,7 +17,7 @@ module Tramway::Admin
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def create
|
20
|
-
@singleton_form = admin_form_class.new
|
20
|
+
@singleton_form = admin_form_class.new model_class.new
|
21
21
|
if @singleton_form.submit params[:singleton]
|
22
22
|
redirect_to params[:redirect] || singleton_path(model: params[:model])
|
23
23
|
else
|