Sha256: a7cb4d596101ad93314604ed5cc0f56b3941c2723fe00858320000648f0a03bf

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

class Pet < ActiveRecord::Base
  attr_accessor :current_user

  self.primary_key = :pet_id
  belongs_to :owner, :touch => true
  has_many :toys

  class << self
    attr_accessor :after_destroy_output
  end

  after_destroy do |record|
    Pet.after_destroy_output = record.current_user
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ibm_db-3.0.5-x86-mingw32 test/models/pet.rb
ibm_db-3.0.5 test/models/pet.rb