Skip to content

Commit

Permalink
Add paper_trail gem to HistoricalFact model
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Nov 27, 2024
1 parent 6e5da65 commit f541f28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/historical_fact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class HistoricalFact < ApplicationRecord
strip_attributes collapse_spaces: true
strip_attributes only: [:phone, :emergency_phone], regex: /[^0-9|+]/
capitalize_attributes :first_name, :last_name, :city, :emergency_contact
has_paper_trail

belongs_to :organization
belongs_to :person, optional: true
Expand Down

0 comments on commit f541f28

Please sign in to comment.