Apply Layout/IndentAssignment rubocop rule

There was one place where we weren't applying it.
This commit is contained in:
Javi Martín
2019-10-25 22:30:22 +02:00
parent e5e414f806
commit e21565628f
2 changed files with 10 additions and 7 deletions

View File

@@ -58,6 +58,9 @@ Layout/EndOfLine:
Layout/ExtraSpacing:
Enabled: true
Layout/IndentAssignment:
Enabled: true
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods

View File

@@ -36,12 +36,12 @@ class Dashboard::AchievementsController < Dashboard::BaseController
def executed_proposed_actions
@executed_proposed_actions ||=
Dashboard::ExecutedAction
.joins(:action)
.includes(:action)
.where(proposal: proposal)
.where(executed_at: start_date.beginning_of_day..end_date.end_of_day)
.where(dashboard_actions: { action_type: 0 })
.order(executed_at: :asc)
Dashboard::ExecutedAction
.joins(:action)
.includes(:action)
.where(proposal: proposal)
.where(executed_at: start_date.beginning_of_day..end_date.end_of_day)
.where(dashboard_actions: { action_type: 0 })
.order(executed_at: :asc)
end
end