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