Apply Layout/IndentAssignment rubocop rule
There was one place where we weren't applying it.
This commit is contained in:
@@ -58,6 +58,9 @@ Layout/EndOfLine:
|
|||||||
Layout/ExtraSpacing:
|
Layout/ExtraSpacing:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Layout/IndentAssignment:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Layout/IndentationConsistency:
|
Layout/IndentationConsistency:
|
||||||
EnforcedStyle: indented_internal_methods
|
EnforcedStyle: indented_internal_methods
|
||||||
|
|
||||||
|
|||||||
@@ -36,12 +36,12 @@ class Dashboard::AchievementsController < Dashboard::BaseController
|
|||||||
|
|
||||||
def executed_proposed_actions
|
def executed_proposed_actions
|
||||||
@executed_proposed_actions ||=
|
@executed_proposed_actions ||=
|
||||||
Dashboard::ExecutedAction
|
Dashboard::ExecutedAction
|
||||||
.joins(:action)
|
.joins(:action)
|
||||||
.includes(:action)
|
.includes(:action)
|
||||||
.where(proposal: proposal)
|
.where(proposal: proposal)
|
||||||
.where(executed_at: start_date.beginning_of_day..end_date.end_of_day)
|
.where(executed_at: start_date.beginning_of_day..end_date.end_of_day)
|
||||||
.where(dashboard_actions: { action_type: 0 })
|
.where(dashboard_actions: { action_type: 0 })
|
||||||
.order(executed_at: :asc)
|
.order(executed_at: :asc)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user