Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
86d0ecdf
Commit
86d0ecdf
authored
Feb 07, 2009
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed broken backgrounding
parent
1f6292ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
+3
-16
lib/paperclip/attachment.rb
+3
-16
No files found.
lib/paperclip/attachment.rb
View file @
86d0ecdf
...
...
@@ -36,7 +36,6 @@ module Paperclip
@storage
=
options
[
:storage
]
@whiny
=
options
[
:whiny_thumbnails
]
@convert_options
=
options
[
:convert_options
]
||
{}
@background
=
options
[
:background
].
nil?
?
instance
.
respond_to?
(:
spawn
)
:
options
[
:background
]
@processors
=
options
[
:processors
]
||
[
:thumbnail
]
@options
=
options
@queued_for_delete
=
[]
...
...
@@ -334,11 +333,9 @@ module Paperclip
def
post_process
#:nodoc:
return
if
@queued_for_write
[
:original
].
nil?
background
do
return
if
fire_events
(
:before
)
post_process_styles
return
if
fire_events
(
:after
)
end
return
if
fire_events
(
:before
)
post_process_styles
return
if
fire_events
(
:after
)
end
def
fire_events
(
which
)
...
...
@@ -362,16 +359,6 @@ module Paperclip
end
end
# When processing, if the spawn plugin is installed, processing can be done in
# a background fork or thread if desired.
def
background
(
&
blk
)
# if instance.respond_to?(:spawn) && @background
# instance.spawn(&blk)
# else
blk
.
call
# end
end
def
callback
which
#:nodoc:
instance
.
run_callbacks
(
which
,
@queued_for_write
){
|
result
,
obj
|
result
==
false
}
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment