From c284190253384be0e41954037c9d01fc128c73b7 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 17 Nov 2022 11:47:47 +0100 Subject: [PATCH] (quality) lint HistoryValue --- app/models/history_value.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/history_value.rb b/app/models/history_value.rb index baaaecfb2..ca957e603 100644 --- a/app/models/history_value.rb +++ b/app/models/history_value.rb @@ -5,13 +5,11 @@ class HistoryValue < Footprintable belongs_to :setting belongs_to :invoicing_profile + delegate :user, to: :invoicing_profile + after_create :chain_record def sort_on_field 'created_at' end - - def user - invoicing_profile.user - end end