Sha256: 188cae54d9f046ee6e060f25988e3933ed66850de5c1acb2737e787631b51d7f
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
class RequestType < ApplicationRecord include MasterModel validates :name, presence: true, format: { with: /\A[0-9A-Za-z][0-9A-Za-z_\-\s,]*[0-9a-z]\Z/ } translates :display_name private def valid_name? true end end # == Schema Information # # Table name: request_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_type.rb |