Sha256: 4afde2bc5f886ad8073ac35fa2ec12f26e9f08c5bb73cba93b50c3ce0694d631
Contents?: true
Size: 436 Bytes
Versions: 3
Compression:
Stored size: 436 Bytes
Contents
class Sample < ActiveRecord::Base serialize :checkbox validates :text, :password, :textarea, :select, :radio, :checkbox, presence: true validates :text, :password, :textarea, :select, :radio, format: {with: /\A[a-z0-9]+\Z/i}, length: {maximum: 20} validates :select, inclusion: {in: Const::SELECT} #validates :checkbox, inclusion: {in: Const::CHECKBOX} validates :radio, inclusion: {in: Const::RADIO} end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yorisoi-0.0.3 | spec/dummy/app/models/sample.rb |
yorisoi-0.0.2 | spec/dummy/app/models/sample.rb |
yorisoi-0.0.1 | spec/dummy/app/models/sample.rb |