Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the formatting

  • Loading branch information...
commit d00c04e334d6a229cde3780bc2954dd4a5c1b09d 1 parent 472a625
@mike-burns mike-burns authored
Showing with 6 additions and 6 deletions.
  1. +2 −2 lib/paperclip.rb
  2. +4 −4 test/attachment_test.rb
View
4 lib/paperclip.rb
@@ -411,14 +411,14 @@ def destroy_attached_files
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
View
8 test/attachment_test.rb
@@ -1076,7 +1076,7 @@ def self.interpolate(pattern, attachment, style_name)
assert_equal "hello", attachment.url
end
end
-
+
context "An attached file" do
setup do
rebuild_model
@@ -1084,8 +1084,8 @@ def self.interpolate(pattern, attachment, style_name)
@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 @@ def self.interpolate(pattern, attachment, style_name)
assert ! File.exists?(@path)
end
end
-
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.