rails-uploader 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uploader/asset.rb +7 -1
- data/lib/uploader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b4b00fbcd6be9841837569fcbd89b22d291b035
|
4
|
+
data.tar.gz: 528c4ad6195d462a333439e477456562a1fd4c65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88594863634e997ce0d3b0997b8345ff75a0c7495a0dc6ac1bd08995267122207bda33ba3099b7b7201c92ce486f18a7010e02dc54607eaaf78c63efe3789f1b
|
7
|
+
data.tar.gz: 1f6d1b8e0304f6dac05886493ae5c2aad2d1a8baec701664d3aa18ad8afac2ddff01dd3aa7b24230f35f015418b7421aa2791a263a75c92257dfaad52b4baf54
|
data/lib/uploader/asset.rb
CHANGED
@@ -10,7 +10,13 @@ module Uploader
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def fileupload_find_assets(params)
|
13
|
-
|
13
|
+
conditions = fileupload_assetable_options(params)
|
14
|
+
|
15
|
+
if params[:assetable_id].blank? && !params[:guid].blank?
|
16
|
+
conditions[Uploader.guid_column] = params[:guid]
|
17
|
+
end
|
18
|
+
|
19
|
+
where(conditions)
|
14
20
|
end
|
15
21
|
|
16
22
|
def fileupload_assetable_options(params)
|
data/lib/uploader/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-uploader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Galeta
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-ui-rails
|