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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3b825fa2add1ad6c39417b59028ca47ff4446a1
4
- data.tar.gz: 03c2d5c6c75eba90d07a6883a60446d5e24f2586
3
+ metadata.gz: 16ed5c768d1a20be4a65ae38f86c906501e8a0ef
4
+ data.tar.gz: 63c72e5af5ad134559c020b70018a963bdebef6d
5
5
  SHA512:
6
- metadata.gz: 806852cfb7ffddd9f02c1d1a97593eee1dd988e8da3d6a436da854550a7640c765c5bf5df41d78e382de0502ca7bb7cf7b85df401bd039944f09e5c2814ad093
7
- data.tar.gz: 3e59aeb512ad79eda54cb80d48ea2019ca9f1df7846ae466b4222f8de2db6ff6c82a68ed055ad4d7b99533fc9a9905cd0cac0a03287cfce23601a46b2ceb73af
6
+ metadata.gz: 5664b3c6e98c477f18769929146d2709d2b5c96e02cb9a9c2e3336f6691e2830c73c486de21f9b2e9f50b909e375aa466668ddecf07f39a749a203e48100cbd6
7
+ data.tar.gz: 6ec20ad809dfa84da3a1c408163f3046db9779d461e4bfcd77b94ad5a01708f0c30e9ed32dfe38abf84ac26ae1a6502ee576ae1ff7d20c443b2501c0036116ce
@@ -1,5 +1,5 @@
1
1
  module WeBridge
2
2
  module AutoViewHelper
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -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 ||= nil
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 || :patch, multipart: true) do
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: we_bridge-auto_view_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinjiro Itagaki