Sha256: 91bd58f6bd7ddc1ddc4df5373aba807167b8b59985cf72ac497112f2ba4a2ed8
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
class BudgetType < ActiveRecord::Base attr_accessible :name, :display_name, :note, :position include MasterModel validates :name, presence: true, format: { with: /\A[0-9A-Za-z][0-9A-Za-z_\-\s,]*[0-9a-z]\Z/ } default_scope { order('budget_types.position') } has_many :items private def valid_name? true end end # == Schema Information # # Table name: budget_types # # id :integer not null, primary key # name :string(255) # display_name :text # note :text # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_library-0.1.0.pre39 | app/models/budget_type.rb |
enju_library-0.1.0.pre38 | app/models/budget_type.rb |
enju_library-0.1.0.pre37 | app/models/budget_type.rb |