effective_bootstrap 1.19.3 → 1.19.5

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
  SHA256:
3
- metadata.gz: 300f02e7b6b2330abf3c481bc1f25fba946452a2645e8b8563de189260edcdfa
4
- data.tar.gz: 54bf157e0565aeb433d5c8ba7bf192823f4bc6fcedeed665ff6533fa5addc935
3
+ metadata.gz: 54480bca1b55ba06862068927925c85e9d734b2df5b34ba6503c2ce546d963eb
4
+ data.tar.gz: db078edad7c0e73f97710c194f2c6d5427909c964294d9905e12e1f68de44ce2
5
5
  SHA512:
6
- metadata.gz: c4a22fed5a95d87fc8a83c49e612d065d1ce72b11149afe117cc08ddfce2e050904c5644a43ad513245c93bcfecbe4f5e8089db8c2f171c4e13de0583b35e8bb
7
- data.tar.gz: cb7f2aa5c848d3dadbd6413d6a4232db808a272d2faf77671bd169b324387d00143826ac82a7bc744e1a8160abd5edc7e7370d6e8bb27593220607bbf036841b
6
+ metadata.gz: f6c4e4d56f25032f8ec64e59325d0c510ef740aa429168a624b16a5e876ef3071fea2402c4030f5a370961aef1bade55c5957a79d95aafe3e3f0bb289b22f701
7
+ data.tar.gz: b2ad7fbc5f58a8c28aa0cdfef5624d27af619326c2b811f578527e732bbd72ae760d37537435cdda480aaba7f5828eca208d79ec3743b6a47ec63851eba5a928
@@ -21,6 +21,7 @@ module Effective
21
21
  class: 'form-control form-control-file btn-outline-secondary',
22
22
  multiple: multiple?,
23
23
  direct_upload: true,
24
+ 'data-direct-upload-url': @template.main_app.rails_direct_uploads_url,
24
25
  'data-progress-template': progress_template,
25
26
  'data-click-submit': (true if click_submit?),
26
27
  }.compact
@@ -65,6 +65,12 @@ module Effective
65
65
  def assign_options_collection!
66
66
  super
67
67
 
68
+ if ajax? && !include_null
69
+ if options_collection.kind_of?(Array) && options_collection.first.respond_to?(:to_select2)
70
+ @options_collection = options_collection.map { |obj| [obj.to_select2, obj.to_param] }
71
+ end
72
+ end
73
+
68
74
  return unless include_null
69
75
 
70
76
  # Check for singles - transform the array
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.19.3'.freeze
2
+ VERSION = '1.19.5'.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: 1.19.3
4
+ version: 1.19.5
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: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails