Sha256: ed7e374c685cb61f8a902c86430ee2434d1fc858674e7680c72e3b3b36cf6bd1
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
module Shoppe class Country < ActiveRecord::Base # Set the table name self.table_name = 'shoppe_countries' # Relationships has_many :orders, :dependent => :restrict_with_exception, :class_name => 'Shoppe::Order' # Scopes scope :ordered, -> { order('shoppe_countries.name asc') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoppe-0.0.15 | app/models/shoppe/country.rb |