carrierwave_backgrounder 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module Backgrounder
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -12,8 +12,8 @@ module CarrierWave
12
12
  cache_path = [cache_dir, tmp].join("/")
13
13
 
14
14
  record.send :"process_#{column}_upload=", true
15
- record.send :"#{column}=", File.open(cache_path)
16
15
  record.send :"#{column}_tmp=", nil
16
+ File.open(cache_path) { |f| record.send :"#{column}=", f }
17
17
  if record.save!
18
18
  FileUtils.rm(cache_path)
19
19
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: carrierwave_backgrounder
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Larry Sprock
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-16 00:00:00 -07:00
13
+ date: 2011-08-29 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency