Skip to content

Commit

Permalink
Added missing parenthesis.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Jul 10, 2008
1 parent fb08a53 commit 19546a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/paperclip_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace :paperclip do
task :metadata => :environment do
for_all_attachments do |instance, name|
if file = instance.send(name).to_file
instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip
instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip)
instance.send("#{name}_content_type=", file.content_type.strip)
instance.send("#{name}_file_size=", file.size) if instance.respond_to?("#{name}_file_size")
instance.save(false)
Expand Down

0 comments on commit 19546a0

Please sign in to comment.