mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
18 lines
291 B
Ruby
18 lines
291 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Setting values, kept history of modifications
|
|
class HistoryValue < Footprintable
|
|
belongs_to :setting
|
|
belongs_to :invoicing_profile
|
|
|
|
after_create :chain_record
|
|
|
|
def sort_on_field
|
|
'created_at'
|
|
end
|
|
|
|
def user
|
|
invoicing_profile.user
|
|
end
|
|
end
|