thin_man 0.9.3 → 0.9.4

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: e241b753a4b04d9f93ad8c88bca327328d0573cc
4
- data.tar.gz: bf47a8b6e9a868a1fcfcfa9ea738fc19a17e6d3d
3
+ metadata.gz: 488fa4055cdc8502c042fa47428b54bf8d883d89
4
+ data.tar.gz: 7bc2ee1da59f974b6e8973fa7a20895191d0cc6a
5
5
  SHA512:
6
- metadata.gz: c5188f39b859f91cb826bb4258c80249cb524c12f3c48f19a6de6cfa75613f7d6d7df63c450ccf5a01df93852c31fb3e421bed488110debfbc9c9b9dd4f8886f
7
- data.tar.gz: 7076e3e7b46ba7a6afe59fad348370594cc6df38d1cc17cfe9ba233b7564c8878f7ac70041e02bab683fc965e3ca8d3bfdfa7200dee53bb223159e90049552a1
6
+ metadata.gz: e9900665f025ff23cd2a0932a50ccfe47f895918f6d0ab8ddb536fc37b5bb134d256c13f18a83d3ddcbfe3efe3f9ed4fbd64df2ec11e2b9acc555f4d6184355e
7
+ data.tar.gz: 8b8a15d44e4e28155e81c8f6bfc1077b2959bc1253d6f948b06b2cd3fbf8c84de02cb1c73c6a64eca5031a3dbd454b67cf153f5a08157fdf0b681f7f583d8094
@@ -39,13 +39,14 @@ module ThinMan
39
39
  html_options.merge(ajax_options))
40
40
  end
41
41
 
42
- def ajax_form_hash(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil)
42
+ def ajax_form_hash(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil, container: nil)
43
43
  ajax_options = {
44
44
  'data-ajax-form' => true,
45
45
  'data-ajax-target' => target
46
46
  }
47
47
  ajax_options.merge!('data-insert-method' => insert_method) if insert_method.present?
48
48
  ajax_options.merge!('data-sub-type' => sub_class) if sub_class.present?
49
+ ajax_options.merge!('data-container' => container) if container.present?
49
50
  ajax_options.merge!('data-error-target' => error_target) if error_target.present?
50
51
  ajax_options.merge!('data-empty-on-success' => empty_on_success) if empty_on_success.present?
51
52
  ajax_options
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut, Adam Bialek