dropzone_input 2.0.0 → 2.0.1

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: b769e1c9e608c81220cdf2347457b4a473c76e0fd7b1ee73deb4e0d90d38cf1d
4
- data.tar.gz: bf793f5d943d8b0b2d5e140b2fb0546ee9dac55dcc8da7897f9d5083982a0a93
3
+ metadata.gz: e12f999be8ae6a38ad2f0d3df3254ffc4b17676079236251707eeacae2a3869d
4
+ data.tar.gz: ec8be72e58e43ebe31279362b19d28055e060bc785aaa6b332f55a042ee3f8cc
5
5
  SHA512:
6
- metadata.gz: ba69bbb62d9950ac32a2f6bcc4c0e6436be0ba76e1602cabe2992f7919ffd88046a20a4839cd041694a86dad1a801183949f7db7c0b041beff04b06944148a34
7
- data.tar.gz: 89701e527dbe42d752ca1a444c0915246f21c71a516075a481fbe3b2aa5b3c4d5d3654df13384d61b4b2e445b0669f87918d11696dc9664959ebc781120565f3
6
+ metadata.gz: 267510212e294392cf3223db8c821047876405ad8d3f4657df9cc474fe0b35b50608bd15f5a6c7a1386b3e385ae49bfc9d2853cf829e5100f12772bad8335814
7
+ data.tar.gz: f199deb4b8eff90a4b5716859098642c10412109a8ce74543372eef2a604f5f4332b5648419afa7df4e382b1d4c9fe72bb9d9e07a63304e28412f3fd50e72465
@@ -10,7 +10,7 @@ module DropzoneInput
10
10
 
11
11
  data = {
12
12
  controller: 'dropzone',
13
- dropzone_accepted_files: ActiveStorage.variable_content_types.join(',')
13
+ dropzone_accepted_files: options.delete(:accepted_files) || ActiveStorage.variable_content_types.join(',')
14
14
  }
15
15
  %i(
16
16
  croppable
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DropzoneInput
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropzone_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2021-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails