Commit 29dbe255 authored by Alexander Mamonchik's avatar Alexander Mamonchik
Browse files

Merge pull request #293 from liorsion/patch-1

Update card_helpers.rb
parents b781fc42 91e52cef
......@@ -29,7 +29,7 @@ module StripeMock
object[:default_source] = card[:id] if is_customer
cards_or_sources[:data] = [card]
else
cards_or_sources[:total_count] = cards_or_sources[:total_count] || 0 + 1
cards_or_sources[:total_count] = (cards_or_sources[:total_count] || 0) + 1
(cards_or_sources[:data] ||= []) << card
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment