Sha256: 59939929b5185d470c750e8c82e09e2971d38512cca333ccc34428db102af099

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 Bytes

Contents

class GeoZone < ActiveRecord::Base
  attr_accessible :geo_country_id, :zone_code, :zone_name
  
  belongs_to :geo_country
  has_many :postal_addresses

  validates :geo_country_id, :presence => {:message => 'Geo country id cannot be blank'}
  validates :zone_code, :presence => {:message => 'Zone code cannot be blank'}
  validates :zone_name, :presence => {:message => 'Zone name cannot be blank'}
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.2.0 app/models/geo_zone.rb
erp_base_erp_svcs-4.0.0 app/models/geo_zone.rb
erp_base_erp_svcs-3.1.5 app/models/geo_zone.rb
erp_base_erp_svcs-3.1.4 app/models/geo_zone.rb
erp_base_erp_svcs-3.1.3 app/models/geo_zone.rb
erp_base_erp_svcs-3.1.2 app/models/geo_zone.rb
erp_base_erp_svcs-3.1.1 app/models/geo_zone.rb
erp_base_erp_svcs-3.1.0 app/models/geo_zone.rb