Apply rubocop rules for trailing commas
This commit is contained in:
@@ -423,3 +423,9 @@ Style/StringLiteralsInInterpolation:
|
||||
|
||||
Style/SymbolProc:
|
||||
Enabled: true
|
||||
|
||||
Style/TrailingCommaInArrayLiteral:
|
||||
Enabled: true
|
||||
|
||||
Style/TrailingCommaInHashLiteral:
|
||||
Enabled: true
|
||||
|
||||
@@ -74,7 +74,7 @@ class Debate < ApplicationRecord
|
||||
{
|
||||
author.username => "B",
|
||||
tag_list.join(" ") => "B",
|
||||
geozone&.name => "B",
|
||||
geozone&.name => "B"
|
||||
}.merge!(searchable_globalized_values)
|
||||
end
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class VotationType < ApplicationRecord
|
||||
answer_set_open: { enum_type: 7, open_answer: true, prioritized: false,
|
||||
variables: [:max_votes, :max_groups_answers] },
|
||||
answer_set_closed: { enum_type: 8, open_answer: false, prioritized: false,
|
||||
variables: [:max_votes, :max_groups_answers] },
|
||||
variables: [:max_votes, :max_groups_answers] }
|
||||
}.freeze
|
||||
|
||||
enum enum_type: ENUM_TYPES_PROPS.map { |k, v| [k, v[:enum_type]] }.to_h.freeze
|
||||
|
||||
@@ -18,7 +18,7 @@ end
|
||||
devise_for :organizations, class_name: "User",
|
||||
controllers: {
|
||||
registrations: "organizations/registrations",
|
||||
sessions: "devise/sessions",
|
||||
sessions: "devise/sessions"
|
||||
},
|
||||
skip: [:omniauth_callbacks]
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ class AddCollaborativeLegislationTranslations < ActiveRecord::Migration[4.2]
|
||||
title: :string,
|
||||
summary: :text,
|
||||
description: :text,
|
||||
additional_info: :text,
|
||||
additional_info: :text
|
||||
},
|
||||
{ migrate_data: true }
|
||||
)
|
||||
|
||||
@@ -141,7 +141,7 @@ shared_examples_for "globalizable" do |factory_name|
|
||||
|
||||
record.translations_attributes = [
|
||||
{ id: record.translations.find_by(locale: :es).id, attribute => "" },
|
||||
{ id: record.translations.find_by(locale: :en).id, _destroy: true },
|
||||
{ id: record.translations.find_by(locale: :en).id, _destroy: true }
|
||||
]
|
||||
|
||||
expect(record).not_to be_valid
|
||||
|
||||
Reference in New Issue
Block a user