Sha256: e1a35e9c4643b9c58d7a2060d501e3ede0d738772fb797bcde1cc65114dd6a39
Contents?: true
Size: 820 Bytes
Versions: 5
Compression:
Stored size: 820 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 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
5 entries across 5 versions & 1 rubygems