Skip to content

Commit

Permalink
Modify tweet to use recipient given by purchaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Linquist committed Oct 17, 2010
1 parent 16bb972 commit 68396e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/order.rb
Expand Up @@ -37,6 +37,6 @@ def tweetie(quantity, purchaser, recipient)
oauth.authorize_from_access(PINT_ME.token, PINT_ME.secret)
client = Twitter::Base.new(oauth)
plural= (quantity >1) ? 'pints' : 'pint'
client.update("@#{recipient.screen_name} was just given #{quantity} #{plural} from @#{recipient.screen_name}.")
client.update("@#{recipient.screen_name} was just given #{quantity} #{plural} from @#{purchaser.screen_name}.")
end
end

0 comments on commit 68396e8

Please sign in to comment.