Sha256: 9bd56d34788b1cef9e854489c50b6d05d96617f36613844937d032b623ce8d17

Contents?: true

Size: 621 Bytes

Versions: 14

Compression:

Stored size: 621 Bytes

Contents

class Chouette::Company < Chouette::TridentActiveRecord
  has_many :lines
  
  validates_presence_of :registration_number
  validates_uniqueness_of :registration_number
  validates_format_of :registration_number, :with => %r{\A[0-9A-Za-z_-]+\Z}

  validates_presence_of :name

  attr_accessible :objectid, :object_version, :creation_time, :creator_id, :name, :short_name
  attr_accessible :organizational_unit, :operating_department_name, :code, :phone, :fax, :email, :registration_number
 
  def self.nullable_attributes
    [:organizational_unit, :operating_department_name, :code, :phone, :fax, :email]
  end
  

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ninoxe-1.1.0 app/models/chouette/company.rb
ninoxe-1.0.3 app/models/chouette/company.rb
ninoxe-1.0.2 app/models/chouette/company.rb
ninoxe-1.0.1 app/models/chouette/company.rb
ninoxe-1.0.0 app/models/chouette/company.rb
ninoxe-0.1.6 app/models/chouette/company.rb
ninoxe-0.1.5 app/models/chouette/company.rb
ninoxe-0.1.4 app/models/chouette/company.rb
ninoxe-0.1.3 app/models/chouette/company.rb
ninoxe-0.1.2 app/models/chouette/company.rb
ninoxe-0.1.1 app/models/chouette/company.rb
ninoxe-0.1.0 app/models/chouette/company.rb
ninoxe-0.0.9 app/models/chouette/company.rb
ninoxe-0.0.8 app/models/chouette/company.rb