smug 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 589f05063f9b7ed2946dcd08f0928b5a23749265
|
4
|
+
data.tar.gz: 0695940b429434d562ddf56f0bbe24319c3c16eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d060961f1df5bd69197d70a27d7e1bbde453fd01641a600a44d83fe50c9ab8a9c9ac0067b3716e571222ee391217434dd507cce4c31df8b85bda9d63de676017
|
7
|
+
data.tar.gz: 8b41f95e461aac09f565cfc02c829a33f5bd3548a3f0b4170815c5b7c05fd34364077faf6d5a0cd8c97f7e3ddbe4e929b1970690f2197901a18196d48427b66b
|
@@ -1,6 +1,6 @@
|
|
1
1
|
= simple_form_for [:admin, @item.object] do |f|
|
2
2
|
- begin
|
3
|
-
= render "smug/admin/#{controller.class.model_name.route_key}/before_form"
|
3
|
+
= render "smug/admin/#{controller.class.model_name.route_key}/before_form", f: f
|
4
4
|
- rescue ActionView::MissingTemplate
|
5
5
|
/ do nothing
|
6
6
|
- controller.class.edit_attrs.each do |attr|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
.links
|
19
19
|
= link_to_add_association "Add", f, nested_association.name, class: "btn btn-default"
|
20
20
|
- begin
|
21
|
-
= render "smug/admin/#{controller.class.model_name.route_key}/after_form"
|
21
|
+
= render "smug/admin/#{controller.class.model_name.route_key}/after_form", f: f
|
22
22
|
- rescue ActionView::MissingTemplate
|
23
23
|
/ do nothing
|
24
24
|
= f.button :submit
|
@@ -6,7 +6,7 @@
|
|
6
6
|
= t(".back", default: "Back")
|
7
7
|
|
8
8
|
- begin
|
9
|
-
= render "smug/admin/#{controller.class.model_name.route_key}/before_show"
|
9
|
+
= render "smug/admin/#{controller.class.model_name.route_key}/before_show"
|
10
10
|
- rescue ActionView::MissingTemplate
|
11
11
|
/ do nothing
|
12
12
|
|
@@ -16,6 +16,6 @@
|
|
16
16
|
dd = @item.render_attr(attr)
|
17
17
|
|
18
18
|
- begin
|
19
|
-
= render "smug/admin/#{controller.class.model_name.route_key}/after_show"
|
19
|
+
= render "smug/admin/#{controller.class.model_name.route_key}/after_show"
|
20
20
|
- rescue ActionView::MissingTemplate
|
21
21
|
/ do nothing
|
data/lib/smug/version.rb
CHANGED