From 2fa217df562d97113e79a5a29a33176ca3e84aee Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 19 Jun 2015 17:41:02 +0800 Subject: [PATCH] Adding paper_trail to enterprise model, to track changes to owner_id and sells --- app/models/enterprise.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 4bd5f4a1e0..3a4dd80dc0 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -10,6 +10,7 @@ class Enterprise < ActiveRecord::Base devise :confirmable, reconfirmable: true, confirmation_keys: [ :id, :email ] handle_asynchronously :send_confirmation_instructions handle_asynchronously :send_on_create_confirmation_instructions + has_paper_trail only: [:owner_id, :sells], on: [:update] self.inheritance_column = nil