Sha256: 86abd85667362ce7e1d8055ec0ffb8e3de206ea2ca1aac0dd6d824046f8f6e44
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
class Chouette::Company < Chouette::TridentActiveRecord has_many :lines validates_format_of :registration_number, :with => %r{\A[0-9A-Za-z_-]+\Z}, :allow_nil => true, :allow_blank => true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ninoxe-1.2.3 | app/models/chouette/company.rb |
ninoxe-1.2.2 | app/models/chouette/company.rb |