Adding paper_trail to enterprise model, to track changes to owner_id and sells

This commit is contained in:
Rob Harrington
2015-06-19 17:41:02 +08:00
parent 6489848eff
commit 2fa217df56

View File

@@ -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