Sha256: 02846c8c7b5e24168dac56462f7319496e2f24ad229b474f57dbfd681ab32eba

Contents?: true

Size: 838 Bytes

Versions: 5

Compression:

Stored size: 838 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# == Schema Information
#
# Table name: account_contacts
#
#  id         :integer         not null, primary key
#  account_id :integer
#  contact_id :integer
#  deleted_at :datetime
#  created_at :datetime
#  updated_at :datetime
#

class AccountContact < ActiveRecord::Base
  belongs_to :account
  belongs_to :contact

  has_paper_trail :meta => { :related => :contact }, :ignore => [ :id, :created_at, :updated_at, :contact_id ]

  validates :account_id, :presence => true

  ActiveSupport.run_load_hooks(:fat_free_crm_account_contact, self)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/models/entities/account_contact.rb
fat_free_crm-0.12.2 app/models/entities/account_contact.rb
fat_free_crm-0.12.1 app/models/entities/account_contact.rb
fat_free_crm-0.13.0 app/models/entities/account_contact.rb
fat_free_crm-0.12.0 app/models/entities/account_contact.rb