uploadbox 0.0.12 → 0.0.13

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: 52e67bd33d5d1a517c147e1220c50de325994091
4
- data.tar.gz: 1a75ed1144f8b7957afb5171227809fb1346e62a
3
+ metadata.gz: cf3cbfed4974a811cdaa9bc00700fdb1cc8d57e0
4
+ data.tar.gz: 5f080cd8e8be770faf1ae1310568158ae8884a4f
5
5
  SHA512:
6
- metadata.gz: b000d2b6cce30d44614441f51341628d5881864a4e900e8d253287c20be9c4472297a3559e7b951393e2e37193d365d3c300375f0250f32d8bb26805fee13977
7
- data.tar.gz: fc091d97575dd2226d83f159a584a680a6074a9b271250592aa07fcfc48b02dc092c0bed124cab996622183b49d57f0d970b3526d4e817d41a373953d9c0848e
6
+ metadata.gz: bd6b3534fb34c79dd511e3c1fbd12b0865df99e938197d21083dbf44b974218e8d3eb1b8b967d0a48cc9aee992663830796ac4e23701842dbc099331d41838da
7
+ data.tar.gz: b03253560ed00d6b9f1c6000912c63c4a2d125acded190bfdec3fa20cc647a66b602f8f912920c942a87b3a84b61e357fa757e0c28be2b50d922b392abec20e3
@@ -5,9 +5,9 @@
5
5
  input name="[#{namespace}]#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
6
6
  - else
7
7
  input name="#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
8
- .fileupload data-provides="fileupload" class="fileupload-#{(resource.send(upload_name).present? or default) ? 'exists' : 'new'}"
8
+ .fileupload data-provides="fileupload" class="fileupload-#{(resource.send("#{upload_name}?") or default) ? 'exists' : 'new'}"
9
9
  .fileupload-preview.thumbnail data-version="#{version}" data-width="#{width}" data-height="#{height}" style="width: #{width}px; height: #{height}px;"
10
- - if resource.send(upload_name).present?
10
+ - if resource.send("#{upload_name}?")
11
11
  = img resource.send(upload_name).send(version)
12
12
  - elsif default
13
13
  = image_tag default, width: width, height: height
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-16 00:00:00.000000000 Z
12
+ date: 2013-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails