Class: ShippingZone

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/shipping_zone.rb

Constant Summary

USA48 =
'USA'
ALASKA_HAWAII =
'Alaska and Hawaii'
CANADA =
'Canada'
USA_TERRITORY =
'USA Territory'
LOCATIONS =

OTHER_STATE = 'Other States'

[USA48, ALASKA_HAWAII, CANADA, USA_TERRITORY]

Instance Method Summary (collapse)

Instance Method Details

- (Object) states

if your model requires more shipping zones create a join table and delete state.shipping_zone_id has_many :state_shipping_zones



5
# File 'app/models/shipping_zone.rb', line 5

has_many :states