Class: Workarea::Storefront::ZipcoViewModel

Inherits:
ApplicationViewModel
  • Object
show all
Defined in:
app/view_models/workarea/storefront/zipco_view_model.rb

Instance Method Summary collapse

Instance Method Details

#show?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'app/view_models/workarea/storefront/zipco_view_model.rb', line 4

def show?
  Zipco.config.allowed_countries.include?(order.billing_address.country.alpha2)
end