diff --git a/.rubocop.yml b/.rubocop.yml index 049f4b6a..ea11aec2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -140,3 +140,6 @@ Layout/LineContinuationLeadingSpace: # redmine does not use load_defaults: https://rails.rubystyle.guide/#config-defaults Rails/RedundantPresenceValidationOnBelongsTo: Enabled: false + +Bundler/DuplicatedGroup: + Enabled: false diff --git a/app/helpers/additionals_journals_helper.rb b/app/helpers/additionals_journals_helper.rb index f9642455..adf35432 100644 --- a/app/helpers/additionals_journals_helper.rb +++ b/app/helpers/additionals_journals_helper.rb @@ -156,6 +156,6 @@ module AdditionalsJournalsHelper custom_field = detail.custom_field return unless custom_field - return { show_diff: true, label: detail.custom_field.name } if custom_field.format.class.change_as_diff + { show_diff: true, label: detail.custom_field.name } if custom_field.format.class.change_as_diff end end