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