Sha256: 27cf90cdd6772713943bb7cd3ecd8cf11a7a91b9aad5d8c36d4e258841db371f
Contents?: true
Size: 727 Bytes
Versions: 1
Compression:
Stored size: 727 Bytes
Contents
class RequestStatusType < ApplicationRecord include MasterModel validates :name, presence: true, format: { with: /\A[0-9A-Za-z][0-9A-Za-z_\-\s,]*[0-9a-z]\Z/ } has_many :reserves translates :display_name private def valid_name? true end end # == Schema Information # # Table name: request_status_types # # id :bigint not null, primary key # name :string not null # display_name :text # note :text # position :integer # created_at :datetime not null # updated_at :datetime not null # display_name_translations :jsonb not null #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_library-0.4.0.rc.1 | app/models/request_status_type.rb |