Sha256: c170226baef7d17db70dfb09d8b64b0fe60dd1edd7cdc32ee0579726153f58b8

Contents?: true

Size: 431 Bytes

Versions: 15

Compression:

Stored size: 431 Bytes

Contents

class UserAttribute < ActiveRecord::Base
  has_many :user_attribute_values
  belongs_to :form_field_type

  validates_associated :form_field_type
  validates :name, :uniqueness=>{:scope=>:system_id}, :presence=>true, :length=>{:minimum=>1, :maximum=>200}
  validates :code_name, :exclusion=>{:in=>%w(id submit), :message=>"Illegal code name"}, :uniqueness=>{:scope=>:system_id}, :format=>{:with=>/^[a-z0-9\-\_]+$/i}
  
 
 
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/models/user_attribute.rb
kit_cms-2.3.20 app/models/user_attribute.rb
kit_cms-2.3.19 app/models/user_attribute.rb
kit_cms-2.3.18 app/models/user_attribute.rb
kit_cms-2.3.17 app/models/user_attribute.rb
kit_cms-2.3.16 app/models/user_attribute.rb
kit_cms-2.3.15 app/models/user_attribute.rb
kit_cms-2.3.14 app/models/user_attribute.rb
kit_cms-2.3.13 app/models/user_attribute.rb
kit_cms-2.3.11 app/models/user_attribute.rb
kit_cms-2.3.10 app/models/user_attribute.rb
kit_cms-2.3.9 app/models/user_attribute.rb
kit_cms-2.3.8 app/models/user_attribute.rb
kit_cms-2.3.7 app/models/user_attribute.rb
kit_cms-2.3.6 app/models/user_attribute.rb