effective_assets 1.4.8 → 1.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32471ca45af88abc980aa26e123d381e7d27172f
4
- data.tar.gz: 0e4100cbf3d280e3326f92de3dc0c421314113f9
3
+ metadata.gz: 5e2f6e9448d7ceb98d50ce57605ae119d6d40abb
4
+ data.tar.gz: 5ebb60c0d881774dddfdf1a2d5ebfa94672a45ee
5
5
  SHA512:
6
- metadata.gz: d3cb18770e13e650fe1f70231e7eb86b91cb6ae7af4321efc067f5c0fa86f5647e80002ba4b18e29093bb15fa10fa03baad4510d2f7f55f77acaf2122529ba8f
7
- data.tar.gz: 9b17898743f809d536ef6739abcab55f130359d68c17b841c66d38b5a5393ad2089108a7ac71f3b61508fc50673a6face8e1e0774fa0b47c7614dfde49869650
6
+ metadata.gz: 13ce5f85047b1d97bfb41fd7ef46151d07412506540da02a629347f63c37b4513015b0d0006c0cbefab271c91a19495fc671a9d6dbdd04d13fd385c2d6de7186
7
+ data.tar.gz: ccf7a1afaf23b2ad8b71943ab057471af39b75851d1c5a24193e534b1c15bf0e9a6129f2864f24584354c17b9654f6755b2da17a4bdf7a96dc88dc08808419dd
@@ -221,6 +221,7 @@ $.fn.S3Uploader = (options) ->
221
221
  attachable_object_name: asset_box.data('attachable-object-name')
222
222
  attachment_style: asset_box.data('attachment-style')
223
223
  attachment_actions: asset_box.data('attachment-actions')
224
+ attachment_links: asset_box.data('attachment-links')
224
225
  aws_acl: asset_box.data('aws-acl')
225
226
  box: asset_box.data('box')
226
227
  async: true
@@ -44,7 +44,7 @@ module Effective
44
44
  attachment.position = 0
45
45
  attachable_object_name = params[:attachable_object_name].to_s
46
46
  attachment_actions = params[:attachment_actions]
47
- attachment_links = params[:attachment_links]
47
+ attachment_links = ![false, 0, '0', 'f', 'F', 'false', 'FALSE', 'off', 'OFF'].include?(params[:attachment_links])
48
48
 
49
49
  attachment_partial =
50
50
  case params[:attachment_style].to_s
@@ -43,6 +43,7 @@ module Inputs
43
43
  data-attachment-add-to='#{@options[:attachment_add_to]}'
44
44
  data-attachment-actions='#{@options[:attachment_actions].to_json()}'
45
45
  data-attachment-count='#{attachments.length}'
46
+ data-attachment-links='#{@options[:attachment_links]}'
46
47
  data-over-limit-alerted='false'
47
48
  data-aws-acl='#{@options[:aws_acl]}'
48
49
  >".html_safe
@@ -5,7 +5,7 @@
5
5
  - if drop_files
6
6
  %p= drop_files_help_text
7
7
 
8
- %span.btn.btn-success.fileinput-button
8
+ %span.btn.btn-secondary.fileinput-button
9
9
  %i.glyphicon.glyphicon-upload
10
10
  %span= btn_label
11
11
  - if limit > 1
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.4.8'.freeze
2
+ VERSION = '1.4.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
4
+ version: 1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect