effective_bootstrap 0.5.7 → 0.5.8

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: cc2e1b351080ab147fc2d57106de0b7b3c9abd86
4
- data.tar.gz: 74cb10a9820d2a4c92f5c3042926e64cf957142b
3
+ metadata.gz: 924e625edc3abab84f5eba1a7ddd7c7c8259e8e4
4
+ data.tar.gz: 36ecf566fcdc57afc35cdaa964a4c8eea1992f1f
5
5
  SHA512:
6
- metadata.gz: df51a066ba5923efdff4ff59ab6a1248f3aa3b48eb591c89b75cf14238ac533fb90d0aa02b4f66c4a1e304d2c782333b0dbda0a0abdaa2e27afced7f6bcb59e3
7
- data.tar.gz: 516b46f0c26202271e3c0d29fecebdbb290a181432bf5be06adb926207473b25deaf21f3b18859e51ec99cebee7753e89bac4a65f2f40038bf7ea3dfb6726072
6
+ metadata.gz: 2fd766f9e8a968291b5b51fb7d7c753f25f82c7943bf683963a211bc04acd0bfa6b90c19c96c47b7aa9c962536f9d060f5b22e5c2bbf78c48abf49a482df71f8
7
+ data.tar.gz: 08e70de9e27710de91e86e7719d722814c270dd8f3fd2e9bde86e8480fb540b0aefafc01f94e1a803caa0b43e5f3082c447fa68aa2523a5a9aa7872ab1ef5d2b
@@ -13,11 +13,19 @@ module EffectiveFormBuilderHelper
13
13
  "new_#{class_name}"
14
14
  end
15
15
 
16
- options[:class] = [options[:class], 'needs-validation', ('form-inline' if options[:layout] == :inline), ('with-errors' if subject.respond_to?(:errors) && subject.errors.present?)].compact.join(' ')
16
+ options[:class] = [
17
+ options[:class],
18
+ 'needs-validation',
19
+ ('form-inline' if options[:layout] == :inline),
20
+ ('with-errors' if subject.respond_to?(:errors) && subject.errors.present?)
21
+ ].compact.join(' ')
22
+
17
23
  options[:html] = (options[:html] || {}).merge(novalidate: true, onsubmit: 'return EffectiveForm.validate(this);')
18
24
 
19
25
  remote_index = options.except(:model).hash.abs
20
26
 
27
+ options[:remote] = true if respond_to?(:inline_datatable?) && inline_datatable?
28
+
21
29
  if options.delete(:remote) == true
22
30
  @_effective_remote_index ||= 0
23
31
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.5.7'.freeze
2
+ VERSION = '0.5.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails