we_bridge-auto_view_helper 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/we_bridge/auto_view_helper/version.rb +1 -1
- data/lib/we_bridge/auto_view_helper.rb +3 -3
- 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: 16ed5c768d1a20be4a65ae38f86c906501e8a0ef
|
4
|
+
data.tar.gz: 63c72e5af5ad134559c020b70018a963bdebef6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5664b3c6e98c477f18769929146d2709d2b5c96e02cb9a9c2e3336f6691e2830c73c486de21f9b2e9f50b909e375aa466668ddecf07f39a749a203e48100cbd6
|
7
|
+
data.tar.gz: 6ec20ad809dfa84da3a1c408163f3046db9779d461e4bfcd77b94ad5a01708f0c30e9ed32dfe38abf84ac26ae1a6502ee576ae1ff7d20c443b2501c0036116ce
|
@@ -17,7 +17,7 @@ module WeBridge
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def edit_common(record,url,options={})
|
20
|
-
self._form_common(record,url,options)
|
20
|
+
self._form_common(record,url,{method: :patch}.merge(options))
|
21
21
|
end
|
22
22
|
|
23
23
|
def new_common(record,url,options={})
|
@@ -35,11 +35,11 @@ module WeBridge
|
|
35
35
|
locale = options[:locale]
|
36
36
|
|
37
37
|
title ||= "Edit " + record.class.name
|
38
|
-
method
|
38
|
+
method = options[:method]
|
39
39
|
markup do |m|
|
40
40
|
m.section do
|
41
41
|
m.h2 title
|
42
|
-
m << form_tag(url, method: method || :
|
42
|
+
m << form_tag(url, method: method || :post, multipart: true) do
|
43
43
|
markup do |m2|
|
44
44
|
m2.dl do
|
45
45
|
klass = record.class
|