Sha256: 0c526aa03bb839946452850cc6745fc25c6b7b3bb052ea7c3f5f4cc7665ba24b
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 Bytes
Contents
class Chouette::Company < Chouette::TridentActiveRecord has_many :lines validates_presence_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 # attr_accessible :url, :time_zone validates_format_of :url, :with => %r{\Ahttps?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?\Z}, :allow_nil => true, :allow_blank => true def self.nullable_attributes [:organizational_unit, :operating_department_name, :code, :phone, :fax, :email, :url, :time_zone] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ninoxe-1.2.1 | app/models/chouette/company.rb |