Commit d00c04e3 by Mike Burns

Fix the formatting

parent 472a625a
......@@ -411,14 +411,14 @@ module Paperclip
attachment.send(:flush_deletes)
end
end
def prepare_for_destroy
Paperclip.log("Scheduling attachments for deletion.")
each_attachment do |name, attachment|
attachment.send(:queue_existing_for_delete)
end
end
end
end
......@@ -1076,7 +1076,7 @@ class AttachmentTest < Test::Unit::TestCase
assert_equal "hello", attachment.url
end
end
context "An attached file" do
setup do
rebuild_model
......@@ -1084,8 +1084,8 @@ class AttachmentTest < Test::Unit::TestCase
@file = File.new(File.join(File.dirname(__FILE__), "fixtures", "5k.png"), 'rb')
@dummy.avatar = @file
@dummy.save!
@attachment = @dummy.avatar
@path = @attachment.path
@attachment = @dummy.avatar
@path = @attachment.path
end
should "not be deleted when the model fails to destroy" do
......@@ -1103,5 +1103,5 @@ class AttachmentTest < Test::Unit::TestCase
assert ! File.exists?(@path)
end
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