Commit d00c04e3 by Mike Burns

Fix the formatting

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