Class: Workarea::User::SavedAddress

Inherits:
Address
  • Object
show all
Defined in:
app/models/workarea/user/saved_address.rb

Constant Summary

Constants inherited from Address

Address::ATTRIBUTES_FOR_LENGTH_VALIDATION

Instance Method Summary collapse

Methods inherited from Address

#address_eql?, #as_json, #country=, #phone_number=, #po_box?, #region_name

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

assert_valid_config!, async, disable, enable, inline, #run_callbacks

Methods included from Mongoid::Document

#embedded_children

Instance Method Details

#allow_po_box?Boolean

Returns:

  • (Boolean)


7
8
9
10
# File 'app/models/workarea/user/saved_address.rb', line 7

def allow_po_box?
  Workarea.config.allow_shipping_address_po_box ||
    Workarea.config.allow_payment_address_po_box
end