updated install script

This commit is contained in:
albert
2011-08-28 11:11:58 -04:00
parent d7ccb94a5e
commit 8b0ff52ede
3 changed files with 28 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ class Upload < ActiveRecord::Base
generate_resizes(file_path)
move_file
post = convert_to_post
post.distribute_files
if post.save
update_attributes(:status => "completed", :post_id => post.id)
else