lib/kentaa/api/resources/donation.rb in kentaa-api-0.2.0 vs lib/kentaa/api/resources/donation.rb in kentaa-api-0.2.1
- old
+ new
@@ -63,10 +63,10 @@
def last_name
data[:last_name]
end
def name
- [first_name, infix, last_name].compact.join(" ")
+ [first_name, infix, last_name].reject { |s| s.to_s.empty? }.join(" ")
end
def company
data[:company]
end