mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
26 lines
383 B
Ruby
26 lines
383 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'checksum'
|
|
|
|
# Setting values, kept history of modifications
|
|
class HistoryValue < Footprintable
|
|
belongs_to :setting
|
|
belongs_to :invoicing_profile
|
|
|
|
after_create :chain_record
|
|
|
|
def chain_record
|
|
super('created_at')
|
|
end
|
|
|
|
def user
|
|
invoicing_profile.user
|
|
end
|
|
|
|
private
|
|
|
|
def compute_footprint
|
|
super('created_at')
|
|
end
|
|
end
|