Merge pull request #3313 from consul/backport-fix_literal_as_condition
Fix literal as condition
This commit is contained in:
@@ -30,6 +30,9 @@ Layout/TrailingBlankLines:
|
||||
Layout/TrailingWhitespace:
|
||||
Enabled: true
|
||||
|
||||
Lint/LiteralAsCondition:
|
||||
Enabled: true
|
||||
|
||||
Lint/UselessAssignment:
|
||||
Enabled: true
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ class Budget
|
||||
scope :for_render, -> { includes(:heading) }
|
||||
|
||||
before_save :calculate_confidence_score
|
||||
after_save :recalculate_heading_winners if :incompatible_changed?
|
||||
after_save :recalculate_heading_winners
|
||||
before_validation :set_responsible_name
|
||||
before_validation :set_denormalized_ids
|
||||
|
||||
|
||||
Reference in New Issue
Block a user