Sha256: 23fa492dd2a9d4c92a541ef42a3d6878bed5c68774f8c385aeb5f7111f2c38c8
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
class BudgetType < 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 :items translates :display_name private def valid_name? true end end # == Schema Information # # Table name: budget_types # # id :bigint not null, primary key # name :string # 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/budget_type.rb |