Sha256: aaa5a3ad6a65ea7a631cfba6e7a06faed3a417e695f178a92dc8c44a70a14fa0
Contents?: true
Size: 297 Bytes
Versions: 12
Compression:
Stored size: 297 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
12 entries across 12 versions & 3 rubygems