Permalink
Browse files

Plan fixes

  • Loading branch information...
1 parent 96bce85 commit ae6415ccb67d2c5b24f97255d0c5998e4b08af8e @k2052 committed Apr 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/garry/jobs/account_update_stripe.rb
@@ -17,7 +17,7 @@ def self.perform(account_id, updates={})
account.last_4_digits = customer.active_card.last4 if updates.include?(:card) and customer.active_card
if updates.include?(:plan)
- plan = ::Plan.find_by_id(updates[:plan])
+ plan = ::Plan.find_by_name(updates[:plan])
account.plan_id = plan.id
account.plan_ids << plan.id
end

0 comments on commit ae6415c

Please sign in to comment.