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