lib/active_merchant/billing/credit_card.rb in activemerchant-1.62.0 vs lib/active_merchant/billing/credit_card.rb in activemerchant-1.63.0
- old
+ new
@@ -243,10 +243,10 @@
# Returns the full name of the card holder.
#
# @return [String] the full name of the card holder
def name
- [first_name, last_name].compact.join(' ')
+ "#{first_name} #{last_name}".strip
end
def name=(full_name)
names = full_name.split
self.last_name = names.pop