implment blank? on Address presenter

To keep the same method calls that are used on the legacy invoice template. I needed to redefine blank? on the address presenter.
This commit is contained in:
Mohamed ABDELLANI
2023-08-03 14:05:24 +01:00
parent 4449484402
commit 24b1918df5

View File

@@ -24,6 +24,10 @@ class Invoice
render_address([address1, address2, city, zipcode, state&.name])
end
def blank?
@data.nil?
end
private
def render_address(address_parts)