Skip to content
Browse files

Let's inline.

  • Loading branch information...
1 parent 6d7d90c commit bb1f339fca33d75e7ca54e0721c472e1a74ccd04 @gabebw gabebw committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/fake_braintree/customer.rb
  2. 0 spec/fake_braintree/redirect_spec.rb
View
7 lib/fake_braintree/customer.rb
@@ -15,11 +15,10 @@ def create
if invalid?
response_for_invalid_card
else
- hash = customer_hash
- credit_cards = hash["credit_cards"]
- create_customer_with(hash)
+ credit_cards = customer_hash["credit_cards"]
+ create_customer_with(customer_hash)
credit_cards.each { |card| add_credit_card_to_registry(card) }
- response_for_created_customer(hash)
+ response_for_created_customer(customer_hash)
end
end
View
0 spec/fake_braintree/redirect_spec.rb
No changes.

0 comments on commit bb1f339

Please sign in to comment.
Something went wrong with that request. Please try again.