1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/models/history_value.rb

26 lines
383 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'checksum'
# Setting values, kept history of modifications
class HistoryValue < Footprintable
2018-12-17 16:02:02 +01:00
belongs_to :setting
belongs_to :invoicing_profile
after_create :chain_record
def chain_record
super('created_at')
2020-07-21 19:25:21 +02:00
end
def user
invoicing_profile.user
end
private
def compute_footprint
super('created_at')
end
2018-12-17 16:02:02 +01:00
end