Sha256: b6dfd3201971da24f929390c47f432bb94bc2d3cb9329a65e455d06da2a3a0d5
Contents?: true
Size: 370 Bytes
Versions: 23
Compression:
Stored size: 370 Bytes
Contents
# A company record, mainly an organizational tool for Contacts # class Company < ActiveRecord::Base include E9Rails::ActiveRecord::AttributeSearchable has_many :contacts, :dependent => :restrict validates :name, :presence => true, :uniqueness => { :allow_blank => true, :case_sensitive => false } scope :ordered, lambda { order(arel_table[:name].asc) } end
Version data entries
23 entries across 23 versions & 1 rubygems