lib/active_merchant/billing/credit_card.rb in activemerchant-1.13.0 vs lib/active_merchant/billing/credit_card.rb in activemerchant-1.14.0
- old
+ new
@@ -63,22 +63,22 @@
def expired?
expiry_date.expired?
end
def name?
- first_name? && last_name?
+ first_name? || last_name?
end
def first_name?
- !@first_name.blank?
+ @first_name.present?
end
def last_name?
- !@last_name.blank?
+ @last_name.present?
end
def name
- "#{@first_name} #{@last_name}"
+ [@first_name, @last_name].compact.join(' ')
end
def verification_value?
!@verification_value.blank?
end