Sha256: 7cc921f62507f7a3a322efe3691cb85118c69c53f43943d924fe8f8d2be06231
Contents?: true
Size: 482 Bytes
Versions: 19
Compression:
Stored size: 482 Bytes
Contents
class BudgetType < ActiveRecord::Base 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 private def valid_name? true end end # == Schema Information # # Table name: budget_types # # id :integer not null, primary key # name :string # display_name :text # note :text # position :integer # created_at :datetime # updated_at :datetime #
Version data entries
19 entries across 17 versions & 2 rubygems