Sha256: 10f634621796226bc213a8e54ca26cc056285e67d6f6062027c99608d186e272

Contents?: true

Size: 407 Bytes

Versions: 10

Compression:

Stored size: 407 Bytes

Contents

class ShopAddress < ActiveRecord::Base
  
  has_many :billings,   :class_name => 'ShopOrder', :foreign_key => :billing_id
  has_many :shippings,  :class_name => 'ShopOrder', :foreign_key => :shipping_id
  
  validates_presence_of :name
  validates_presence_of :street
  validates_presence_of :city
  validates_presence_of :postcode
  validates_presence_of :state  
  validates_presence_of :country
    
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
radiant-shop-extension-0.90.4 app/models/shop_address.rb
radiant-shop-extension-0.90.2 app/models/shop_address.rb
radiant-shop-extension-0.90.1 app/models/shop_address.rb
radiant-shop-extension-0.90.0 app/models/shop_address.rb
radiant-shop-extension-0.11.6 app/models/shop_address.rb
radiant-shop-extension-0.11.5 app/models/shop_address.rb
radiant-shop-extension-0.11.4 app/models/shop_address.rb
radiant-shop-extension-0.11.3 app/models/shop_address.rb
radiant-shop-extension-0.11.1 app/models/shop_address.rb
radiant-shop-extension-0.11.0 app/models/shop_address.rb