mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Adding paper_trail to enterprise model, to track changes to owner_id and sells
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user