mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
(quality) lint HistoryValue
This commit is contained in:
parent
eb15e0e5a2
commit
c284190253
@ -5,13 +5,11 @@ class HistoryValue < Footprintable
|
|||||||
belongs_to :setting
|
belongs_to :setting
|
||||||
belongs_to :invoicing_profile
|
belongs_to :invoicing_profile
|
||||||
|
|
||||||
|
delegate :user, to: :invoicing_profile
|
||||||
|
|
||||||
after_create :chain_record
|
after_create :chain_record
|
||||||
|
|
||||||
def sort_on_field
|
def sort_on_field
|
||||||
'created_at'
|
'created_at'
|
||||||
end
|
end
|
||||||
|
|
||||||
def user
|
|
||||||
invoicing_profile.user
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user