lib/kentaa/api/resources/newsletter_subscription.rb in kentaa-api-0.2.0 vs lib/kentaa/api/resources/newsletter_subscription.rb in kentaa-api-0.2.1
- old
+ new
@@ -34,10 +34,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 site_id
data[:site_id]
end