uploadbox 0.0.6 → 0.0.7

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: 7a522ad87791ba9cd744aed842e7e62db83085f9
4
- data.tar.gz: 284327809309d14a235135ff9fdde709761c764f
3
+ metadata.gz: dd2d26ea7a6f565a452fd772626c1919ee846709
4
+ data.tar.gz: abc178d5d852c2575c452184596402737065e63e
5
5
  SHA512:
6
- metadata.gz: 19ab47a4a5959062b0842236169d2ead8b3bdd929a01831759e3fbd29cd101dcf53caa740978fc37fc040afc5d730504c9a3df2d3260065ae41f26e8d7768230
7
- data.tar.gz: 1ea1310f3b1f6a0609b2d9b04591bed45381184bb00c132af7f82a9c8093dedcdfd60ac9b99bd5618292ead6f2472a32fecfb7d4c7cb93d52a4394cc13426269
6
+ metadata.gz: d125cda1a974a2cd6ca5c5670106b4bb75f00457c69f7f5f9690e7c7a8577f2f80981bbc9a9487e952998b82d8a66ca0267b423b152b2a179a6c2f1dcb21fdac
7
+ data.tar.gz: 9e9eb602502dcd5d0bda6d9b5fecc73029234870ac39dc92ff4a1b0ca2a90c250e13c5a865878bee23d1f5178d57f7d14139c3509d3dd6a9597e6f6ec7809542
@@ -1,9 +1,9 @@
1
1
  = form.fields_for :image do
2
2
  .uploadbox-image-uploader data-component="ImageUploader"
3
3
  - if namespace
4
- input name="[#{namespace}]#{upload_name}_id" data-item="id" type="hidden"
4
+ input name="[#{namespace}]#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
5
5
  - else
6
- input name="#{upload_name}_id" data-item="id" type="hidden"
6
+ input name="#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
7
7
  .fileupload data-provides="fileupload" class="fileupload-#{(resource.send(upload_name).present? or default) ? 'exists' : 'new'}"
8
8
  .fileupload-preview.thumbnail data-version="#{version}" data-width="#{width}" data-height="#{height}" style="width: #{width}px; height: #{height}px;"
9
9
  - if resource.send(upload_name).present?
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek