Sha256: 1b4cfa5a71eade0cd67244b41b5372afca6c32e48a400647fc71d92c4ee24ab7
Contents?: true
Size: 324 Bytes
Versions: 18
Compression:
Stored size: 324 Bytes
Contents
class Contract < ActiveRecord::Base belongs_to :company belongs_to :developer belongs_to :firm, :foreign_key => 'company_id' before_save :hi after_save :bye attr_accessor :hi_count, :bye_count def hi @hi_count ||= 0 @hi_count += 1 end def bye @bye_count ||= 0 @bye_count += 1 end end
Version data entries
18 entries across 18 versions & 2 rubygems