mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Story #109367694 - refactor: move UserEvents include up, wrap method in included block, say self
This commit is contained in:
parent
b7e560aacc
commit
7b2767eb08
5 changed files with 23 additions and 22 deletions
|
@ -2,8 +2,6 @@ class ContactVersion < PaperTrail::Version
|
|||
include VersionSession
|
||||
self.table_name = :log_contacts
|
||||
self.sequence_name = :log_contacts_id_seq
|
||||
|
||||
include UserEvents
|
||||
|
||||
|
||||
# scope :deleted, -> { where(event: 'destroy') }
|
||||
end
|
||||
|
|
|
@ -4,7 +4,5 @@ class DomainVersion < PaperTrail::Version
|
|||
self.table_name = :log_domains
|
||||
self.sequence_name = :log_domains_id_seq
|
||||
|
||||
include UserEvents
|
||||
|
||||
scope :deleted, -> { where(event: 'destroy') }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue