Fix all Layout/SpaceBeforeComma rubocop issues and remove from rubocop_todo list
This commit is contained in:
@@ -19,7 +19,7 @@ class Legislation::AnswersController < Legislation::BaseController
|
||||
end
|
||||
else
|
||||
respond_to do |format|
|
||||
format.js { render json: {} , status: :not_found }
|
||||
format.js { render json: {}, status: :not_found }
|
||||
format.html { redirect_to legislation_process_question_path(@process, @question), alert: t('legislation.questions.participation.phase_not_open') }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -39,7 +39,7 @@ class Proposal < ActiveRecord::Base
|
||||
before_save :calculate_hot_score, :calculate_confidence_score
|
||||
|
||||
scope :for_render, -> { includes(:tags) }
|
||||
scope :sort_by_hot_score , -> { reorder(hot_score: :desc) }
|
||||
scope :sort_by_hot_score, -> { reorder(hot_score: :desc) }
|
||||
scope :sort_by_confidence_score, -> { reorder(confidence_score: :desc) }
|
||||
scope :sort_by_created_at, -> { reorder(created_at: :desc) }
|
||||
scope :sort_by_most_commented, -> { reorder(comments_count: :desc) }
|
||||
|
||||
Reference in New Issue
Block a user