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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbad9969ef43d0297b7a0d349993d755edce007a
4
- data.tar.gz: 08bc6728020e766bfd09dcc555c6facd06c1de85
3
+ metadata.gz: 5b4b00fbcd6be9841837569fcbd89b22d291b035
4
+ data.tar.gz: 528c4ad6195d462a333439e477456562a1fd4c65
5
5
  SHA512:
6
- metadata.gz: 90f3acd45823464aca138d8efdb8f44ca41ab6d8e064af5edbe50208598f638dc6a5453c7c0d366df380c0ef3c5bbf9bdcf970dc6af5d572723c99ea20815605
7
- data.tar.gz: 4b602bfb7fdb078c9ad53d3a56cc1f3b9d836d5980344033064dc5b9edf4f0d5164f9762449351220bcbea83e3426e8324c8927cc859b62aad2f8e173e8d22a3
6
+ metadata.gz: 88594863634e997ce0d3b0997b8345ff75a0c7495a0dc6ac1bd08995267122207bda33ba3099b7b7201c92ce486f18a7010e02dc54607eaaf78c63efe3789f1b
7
+ data.tar.gz: 1f6d1b8e0304f6dac05886493ae5c2aad2d1a8baec701664d3aa18ad8afac2ddff01dd3aa7b24230f35f015418b7421aa2791a263a75c92257dfaad52b4baf54
@@ -10,7 +10,13 @@ module Uploader
10
10
  end
11
11
 
12
12
  def fileupload_find_assets(params)
13
- where(fileupload_assetable_options(params))
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)
@@ -1,3 +1,3 @@
1
1
  module Uploader
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
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.0
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-11-18 00:00:00.000000000 Z
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