Commit 2d729bcc by Jon Yurek

Based on a patch, reset the size of the original attachment after post_processing.

parent fd2333e7
...@@ -83,6 +83,9 @@ module Paperclip ...@@ -83,6 +83,9 @@ module Paperclip
@dirty = true @dirty = true
post_process post_process
# Reset the file size if the original file was reprocessed.
@instance[:"#{@name}_file_size"] = uploaded_file.size.to_i
ensure ensure
validate validate
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment