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