carrierwave_backgrounder 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/backgrounder/orm/base.rb +4 -4
- data/lib/backgrounder/version.rb +1 -1
- metadata +2 -2
@@ -68,14 +68,14 @@ module CarrierWave
|
|
68
68
|
# store_in_background :avatar
|
69
69
|
# end
|
70
70
|
#
|
71
|
-
# The above adds a User#process_<column> method which can be used at times when you want to bypass
|
71
|
+
# The above adds a User#process_<column>_upload method which can be used at times when you want to bypass
|
72
72
|
# background storage and processing.
|
73
73
|
#
|
74
|
-
# @user.
|
74
|
+
# @user.process_avatar_upload = true
|
75
75
|
# @user.save
|
76
76
|
#
|
77
77
|
# You can also pass in your own workers using the second argument in case you need other things done
|
78
|
-
#
|
78
|
+
# during processing.
|
79
79
|
#
|
80
80
|
# class User < ActiveRecord::Base
|
81
81
|
# mount_uploader :avatar, AvatarUploader
|
@@ -89,7 +89,7 @@ module CarrierWave
|
|
89
89
|
attr_accessor :process_#{column}_upload
|
90
90
|
|
91
91
|
def write_#{column}_identifier
|
92
|
-
super() and return if
|
92
|
+
super() and return if process_#{column}_upload
|
93
93
|
self.#{column}_tmp = _mounter(:#{column}).cache_name
|
94
94
|
end
|
95
95
|
|
data/lib/backgrounder/version.rb
CHANGED
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.
|
5
|
+
version: 0.0.4
|
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-
|
13
|
+
date: 2011-05-16 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|