Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: Paperclip File Management Plugin
Homepage: http://www.thoughtbot.com/projects/paperclip
Clone URL: git://github.com/thoughtbot/paperclip.git
Search Repo:
Added missing parenthesis.
jyurek (author)
Wed Jul 09 21:03:08 -0700 2008
commit  19546a0127c31d0e30ee79af7a57ed4b72a19be7
tree    ce43091ba2f78e4cdfb168b4bcd325ffa288b0f0
parent  fb08a5335a64585eed4b6c9e540f466d6fc9efc7
...
49
50
51
52
 
53
54
55
...
49
50
51
 
52
53
54
55
0
@@ -49,7 +49,7 @@ namespace :paperclip do
0
     task :metadata => :environment do
0
       for_all_attachments do |instance, name|
0
         if file = instance.send(name).to_file
0
- instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip
0
+ instance.send("#{name}_file_name=", instance.send("#{name}_file_name").strip)
0
           instance.send("#{name}_content_type=", file.content_type.strip)
0
           instance.send("#{name}_file_size=", file.size) if instance.respond_to?("#{name}_file_size")
0
           instance.save(false)

Comments

    No one has commented yet.