Linter prefer double-quoted strings
This commit is contained in:
@@ -5,10 +5,10 @@ class BubblesController < ApplicationController
|
||||
if params[:tag_id]
|
||||
@tag = Tag.find(params[:tag_id])
|
||||
@bubbles = @tag.bubbles
|
||||
@most_active_bubbles = @tag.bubbles.left_joins(:comments, :boosts).group(:id).order(Arel.sql('COUNT(comments.id) + COUNT(boosts.id) DESC')).limit(10)
|
||||
@most_active_bubbles = @tag.bubbles.left_joins(:comments, :boosts).group(:id).order(Arel.sql("COUNT(comments.id) + COUNT(boosts.id) DESC")).limit(10)
|
||||
else
|
||||
@bubbles = Bubble.all.order(created_at: :desc)
|
||||
@most_active_bubbles = Bubble.left_joins(:comments, :boosts).group(:id).order(Arel.sql('COUNT(comments.id) + COUNT(boosts.id) DESC')).limit(10)
|
||||
@most_active_bubbles = Bubble.left_joins(:comments, :boosts).group(:id).order(Arel.sql("COUNT(comments.id) + COUNT(boosts.id) DESC")).limit(10)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user