glebtv-rails-uploader 0.7.1 → 0.8.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce75403149d61918f485a79cd2fd49c113043410
|
4
|
+
data.tar.gz: 8b85dfdb78085e19a7e49609c94cdbed2e3627e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c7a4228ea072c007a42615779bb1fde2120580bf7ee06b318eaea7f6bae83c4738daab4ecab51d1a504c9d5ec1cf586a2ac60313ce019002f95a9f917bf5d55
|
7
|
+
data.tar.gz: c867447af03443e735734772502664d3f9328ef0fead3d2d7b4d117751c973fd53ef45722d0800884117ea691eb2d2219d3cff8a01a780e34e4e14e68a424810
|
@@ -40,7 +40,7 @@ module Uploader
|
|
40
40
|
|
41
41
|
def render_resourse(record, status = 200)
|
42
42
|
if record.errors.empty?
|
43
|
-
render_json({:files =>
|
43
|
+
render_json({:files => Array.wrap(record.to_jq_upload)}, status)
|
44
44
|
else
|
45
45
|
render_json(record.errors, 422)
|
46
46
|
end
|
@@ -44,7 +44,7 @@
|
|
44
44
|
uploader = ($(this).data('blueimp-fileupload') || $(this).data('fileupload'));
|
45
45
|
<% fv = field.values.sort_by {|s| s.sort.nil? ? 0 : s.sort }.map(&:to_jq_upload) %>
|
46
46
|
uploader
|
47
|
-
._renderDownload(<%=raw (
|
47
|
+
._renderDownload(<%=raw Array.wrap(fv).to_json %>)
|
48
48
|
.appendTo(container);
|
49
49
|
<% end -%>
|
50
50
|
});
|
data/lib/uploader/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glebtv-rails-uploader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Galeta
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jquery-ui-rails
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.4.4
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Rails file upload implementation with jQuery-File-Upload
|