superform 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/superform/rails.rb +3 -2
- data/lib/superform/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: e95163f7344e0731cc859cf60a4bc1486bede4fe3cc88c86a0bd98497ecdf369
|
4
|
+
data.tar.gz: ebd8c4ea43a8958a4d6c70f4886aec84dd20a08a5b51563d18b2d65a4e2afff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d03e967c4e018cb6902ad360719b5c98c4f7ab698a3dd9b6b61d3f3e4fde98231242085657ad9da20258335b34e52c5df7087d9ff27b503fa3a37b69a0c9eab
|
7
|
+
data.tar.gz: b859c82d78000486ab7b51070b22d4611f634513a5ba4f8f1f0c551e75ca3ced2549255858b1c56bc7fc48341ea35a84cc084c9be41af041840d45cb862fea6b
|
data/Gemfile.lock
CHANGED
data/lib/superform/rails.rb
CHANGED
@@ -71,10 +71,11 @@ module Superform
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
-
def initialize(model, action: nil, method: nil)
|
74
|
+
def initialize(model, action: nil, method: nil, **attributes)
|
75
75
|
@model = model
|
76
76
|
@action = action
|
77
77
|
@method = method
|
78
|
+
@attributes = attributes
|
78
79
|
@namespace = Namespace.root(model.model_name.param_key, object: model, field_class: self.class::Field)
|
79
80
|
end
|
80
81
|
|
@@ -87,7 +88,7 @@ module Superform
|
|
87
88
|
end
|
88
89
|
|
89
90
|
def form_tag(&)
|
90
|
-
form action: form_action, method: form_method, &
|
91
|
+
form action: form_action, method: form_method, **@attributes, &
|
91
92
|
end
|
92
93
|
|
93
94
|
def template(&block)
|
data/lib/superform/version.rb
CHANGED