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

Version Path
ibm_db-5.2.0 test/models/contract.rb
ibm_db-5.1.0 test/models/contract.rb
ibm_db-5.0.5 test/models/contract.rb
ibm_db-5.0.4 test/models/contract.rb
ibm_db-5.0.3 test/models/contract.rb
ibm_db-5.0.2 test/models/contract.rb
ibm_db-4.0.0-x86-mingw32 test/models/contract.rb
ibm_db-4.0.0 test/models/contract.rb
ibm_db-3.0.4-x86-mingw32 test/models/contract.rb
ibm_db-3.0.4 test/models/contract.rb
ibm_db-3.0.3-x86-mingw32 test/models/contract.rb
ibm_db-3.0.3 test/models/contract.rb
ibm_db-3.0.2-x86-mingw32 test/models/contract.rb
ibm_db-3.0.2 test/models/contract.rb
activejob-lock-0.0.2 rails/activerecord/test/models/contract.rb
ibm_db-3.0.1 test/models/contract.rb
ibm_db-3.0.1-x86-mingw32 test/models/contract.rb
activejob-lock-0.0.1 rails/activerecord/test/models/contract.rb