Skip to content

Commit

Permalink
Optimize Legacy Courier
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Jones committed May 13, 2011
1 parent e55d66b commit dec3b20
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/concerns/couriers/legacy.rb
Expand Up @@ -16,12 +16,14 @@ def execute id
end

def perform id
p = Photo.fields(:description, :filename, :title).find id

Net::HTTP.post_form(
URI.parse(destination),
{ 'key' => key,
'filename' => Photo.find(id).key,
'description' => Photo.find(id).description,
'title' => Photo.find(id).title }
'filename' => p.key,
'description' => p.description,
'title' => p.title }
)
end
end
Expand Down

0 comments on commit dec3b20

Please sign in to comment.