Class: Workarea::User::SavedAddress
- 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
Methods included from Sidekiq::Callbacks
assert_valid_config!, async, disable, enable, inline, #run_callbacks
Methods included from Mongoid::Document
Instance Method Details
#allow_po_box? ⇒ 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 |