Skip to content

Commit

Permalink
Merge pull request #3313 from consul/backport-fix_literal_as_condition
Browse files Browse the repository at this point in the history
Fix literal as condition
  • Loading branch information
javierm committed Feb 18, 2019
2 parents 8156152 + e11b9dd commit 44483c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Layout/TrailingBlankLines:
Layout/TrailingWhitespace:
Enabled: true

Lint/LiteralAsCondition:
Enabled: true

Lint/UselessAssignment:
Enabled: true

Expand Down
2 changes: 1 addition & 1 deletion app/models/budget/investment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Investment < ActiveRecord::Base
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

Expand Down

0 comments on commit 44483c2

Please sign in to comment.