Sha256: 67eb100e8f5b1b2aad1f3244221ccb119ce11adf3480d87af15a74bfc4477597

Contents?: true

Size: 482 Bytes

Versions: 10

Compression:

Stored size: 482 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

  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

10 entries across 10 versions & 1 rubygems

Version Path
enju_library-0.3.11 app/models/budget_type.rb
enju_library-0.3.10 app/models/budget_type.rb
enju_library-0.3.9 app/models/budget_type.rb
enju_library-0.3.8 app/models/budget_type.rb
enju_library-0.3.8.rc.2 app/models/budget_type.rb
enju_library-0.3.8.rc.1 app/models/budget_type.rb
enju_library-0.3.7 app/models/budget_type.rb
enju_library-0.3.6 app/models/budget_type.rb
enju_library-0.3.5 app/models/budget_type.rb
enju_library-0.3.4 app/models/budget_type.rb