Sha256: b3d487801b11b935031f2eb7566a163ff9b447f373eb546d7b0fa69672605c31
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
class RequestStatusType < ActiveRecord::Base include MasterModel validates :name, presence: true, format: { with: /\A[0-9A-Za-z][0-9A-Za-z_\-\s,]*[0-9a-z]\Z/ } default_scope { order('request_status_types.position') } has_many :reserves private def valid_name? true end end # == Schema Information # # Table name: request_status_types # # id :integer not null, primary key # name :string(255) not null # display_name :text # note :text # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
4 entries across 4 versions & 1 rubygems