Sha256: feb20d95ffe65dcb4937b7270335196de73b830c4d1388f37242b8e887eab210

Contents?: true

Size: 427 Bytes

Versions: 22

Compression:

Stored size: 427 Bytes

Contents

class WorkAccount < ActiveRecord::Base
  has_many :backlogs, :dependent => :nullify
  has_many :works, :dependent => :destroy

  validates_inclusion_of :track_times, :in => [true, false], :allow_nil => true, :message => ActiveRecord::Errors.default_error_messages[:blank]
  validates_length_of :invoice_code, :allow_nil => true, :maximum => 255

  def enable_invoicing?
    invoice_code && invoice_code.length > 0
  end
  
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
backlog-0.11.0 app/models/work_account.rb
backlog-0.12.0 app/models/work_account.rb
backlog-0.12.2 app/models/work_account.rb
backlog-0.12.1 app/models/work_account.rb
backlog-0.12.4 app/models/work_account.rb
backlog-0.12.3 app/models/work_account.rb
backlog-0.13.0 app/models/work_account.rb
backlog-0.13.1 app/models/work_account.rb
backlog-0.14.0 app/models/work_account.rb
backlog-0.14.1 app/models/work_account.rb
backlog-0.14.2 app/models/work_account.rb
backlog-0.14.3 app/models/work_account.rb
backlog-0.15.0 app/models/work_account.rb
backlog-0.14.4 app/models/work_account.rb
backlog-0.15.1 app/models/work_account.rb
backlog-0.16.0 app/models/work_account.rb
backlog-0.17.0 app/models/work_account.rb
backlog-0.17.2 app/models/work_account.rb
backlog-0.17.1 app/models/work_account.rb
backlog-0.17.4 app/models/work_account.rb