Resolves rubocop violations in weighted_query_strategy.rb (#16164)
This commit is contained in:
parent
71dcc7d53f
commit
46d40b2f54
1 changed files with 7 additions and 7 deletions
|
|
@ -363,13 +363,13 @@ module Articles
|
|||
# ActiveRecord goodness of scopes (e.g.,
|
||||
# limited_column_select) and eager includes.
|
||||
finalized_results = Article.where(
|
||||
Article.arel_table[:id].in(
|
||||
Arel.sql(
|
||||
Article.sanitize_sql(unsanitized_sub_sql),
|
||||
),
|
||||
),
|
||||
).limited_column_select.includes(top_comments: :user)
|
||||
finalized_results = final_order_logic(finalized_results)
|
||||
Article.arel_table[:id].in(
|
||||
Arel.sql(
|
||||
Article.sanitize_sql(unsanitized_sub_sql),
|
||||
),
|
||||
),
|
||||
).limited_column_select.includes(top_comments: :user)
|
||||
final_order_logic(finalized_results)
|
||||
end
|
||||
# rubocop:enable Layout/LineLength
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue