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
c132f6c7
Commit
c132f6c7
authored
Jan 31, 2014
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a file.close: users reporting problems
parent
38c51d6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
lib/paperclip/attachment.rb
+1
-4
No files found.
lib/paperclip/attachment.rb
View file @
c132f6c7
...
...
@@ -458,11 +458,8 @@ module Paperclip
def
post_process_style
(
name
,
style
)
#:nodoc:
begin
raise
RuntimeError
.
new
(
"Style
#{
name
}
has no processors defined."
)
if
style
.
processors
.
blank?
original_file
=
@queued_for_write
[
:original
]
@queued_for_write
[
name
]
=
style
.
processors
.
inject
(
@queued_for_write
[
:original
])
do
|
file
,
processor
|
new_file
=
Paperclip
.
processor
(
processor
).
make
(
file
,
style
.
processor_options
,
self
)
file
.
close
unless
file
==
original_file
new_file
Paperclip
.
processor
(
processor
).
make
(
file
,
style
.
processor_options
,
self
)
end
unadapted_file
=
@queued_for_write
[
name
]
@queued_for_write
[
name
]
=
Paperclip
.
io_adapters
.
for
(
@queued_for_write
[
name
])
...
...
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