Ignore changes of updated_at in Ticket and EventType models

This commit is contained in:
Michael Klimenko 2018-03-23 18:23:49 +05:00 committed by James Mason
parent 297447d802
commit 111812025b
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,8 @@ class Ticket < ApplicationRecord
has_many :ticket_purchases, dependent: :destroy
has_many :buyers, -> { distinct }, through: :ticket_purchases, source: :user
has_paper_trail meta: { conference_id: :conference_id }
has_paper_trail meta: { conference_id: :conference_id },
ignore: %i[updated_at]
monetize :price_cents, with_model_currency: :price_currency