Sha256: f30e8b1edda0b8edd7c5c380b7d0fc3a11424c8a7f37af6d73992bf3f52d1aa2

Contents?: true

Size: 728 Bytes

Versions: 11

Compression:

Stored size: 728 Bytes

Contents

module Adherent
  class Coord < ActiveRecord::Base
    belongs_to :member
       
    validates :member_id, :presence=>true
    validates :tel, :format=>{with:NAME_REGEX}, 
      :length=>{:maximum=>LONG_NAME_LENGTH_MAX}, :allow_blank=>true
    validates :gsm, :format=>{with:NAME_REGEX}, 
      :length=>{:maximum=>LONG_NAME_LENGTH_MAX}, :allow_blank=>true
    validates :office, :format=>{with:NAME_REGEX}, 
      :length=>{:maximum=>LONG_NAME_LENGTH_MAX}, :allow_blank=>true
    validates :zip, :format=>{with:NAME_REGEX}, 
      :length=>{:maximum=>LONG_NAME_LENGTH_MAX}, :allow_blank=>true
    validates :city, :format=>{with:NAME_REGEX}, 
      :length=>{:maximum=>LONG_NAME_LENGTH_MAX}, :allow_blank=>true
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
adherent-0.3.12 app/models/adherent/coord.rb
adherent-0.3.11 app/models/adherent/coord.rb
adherent-0.3.10 app/models/adherent/coord.rb
adherent-0.3.9 app/models/adherent/coord.rb
adherent-0.3.7 app/models/adherent/coord.rb
adherent-0.3.6 app/models/adherent/coord.rb
adherent-0.3.5 app/models/adherent/coord.rb
adherent-0.3.4 app/models/adherent/coord.rb
adherent-0.3.3 app/models/adherent/coord.rb
adherent-0.3.2 app/models/adherent/coord.rb
adherent-0.3.1 app/models/adherent/coord.rb