lib/forgery/forgery/credit_card.rb in forgery-0.6.0 vs lib/forgery/forgery/credit_card.rb in forgery-0.7.0

- old
+ new

@@ -32,10 +32,10 @@ # [:prefixes] # The allowed prefixes for the card number. Defaults to prefixes for the selected card type. def self.number(options={}) # find a card by type specified, or select a card randomly card = if options[:type] - CARDS.find { |card| card[:type] == options[:type] }.clone + CARDS.find { |ccard| ccard[:type] == options[:type] }.clone else CARDS.random.clone end # merge the remaining options card.merge!(options)