Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
paperclip:clean will check validations correctly now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Jul 8, 2008
1 parent c9834ef commit 0e1f061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/paperclip_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace :paperclip do
desc "Cleans out invalid attachments. Useful after you've added new validations."
task :clean => :environment do
for_all_attachments do |instance, name|
instance.send(name).send(:validate)
if instance.valid?
true
else
Expand Down

0 comments on commit 0e1f061

Please sign in to comment.