Sha256: 299575b2eec9dd668820c9181854597dcbae1183175d4e754091e27363243ef7

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

module C80Push
  class Office < ActiveRecord::Base
    has_and_belongs_to_many :regions
    belongs_to :dealer

    scope :def_order, -> { order(:ord => :asc) }

    validates :ord,
              :presence => true

    validates :title,
              :presence => true

    validates :addr,
              :presence => true

    validates :gps,
              :presence => true

    validates :tel,
              :presence => true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
c80_push-0.1.0 app/models/c80_push/office.rb