Enable the Layout/EmptyLinesAroundMethodBody cop
This commit is contained in:
parent
24e7537c49
commit
82eb66cfe8
13 changed files with 1 additions and 13 deletions
|
@ -61,7 +61,7 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|||
Enabled: false
|
||||
|
||||
Layout/EmptyLinesAroundMethodBody:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
Layout/EmptyLinesAroundModuleBody:
|
||||
Enabled: false
|
||||
|
|
|
@ -40,7 +40,6 @@ class Admin::ProceduresController < AdminController
|
|||
end
|
||||
|
||||
def edit
|
||||
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
class CguController < ApplicationController
|
||||
def index
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
class NewAdminMailer < ApplicationMailer
|
||||
def new_admin_email admin, password
|
||||
|
||||
@admin = admin
|
||||
@password = password
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
class WelcomeMailer < ApplicationMailer
|
||||
def welcome_email user
|
||||
|
||||
@user = user
|
||||
|
||||
mail(to: user.email,
|
||||
|
|
|
@ -52,7 +52,6 @@ class Gestionnaire < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def build_default_preferences_list_dossier procedure_id=nil
|
||||
|
||||
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
||||
table.second.each do |column|
|
||||
if valid_couple_table_attr? table.first, column.first
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
class ClamavService
|
||||
def self.safe_file? path_file
|
||||
|
||||
if Rails.env == 'development'
|
||||
return CLAMAV[:response] if CLAMAV[:mock?]
|
||||
end
|
||||
|
|
|
@ -13,7 +13,6 @@ class DossiersListGestionnaireService
|
|||
'termine' => termine,
|
||||
'archive' => archive,
|
||||
'all_state' => all_state}[@liste]
|
||||
|
||||
end
|
||||
|
||||
def self.dossiers_liste_libelle
|
||||
|
|
|
@ -11,7 +11,6 @@ class GeojsonService
|
|||
end
|
||||
|
||||
def self.to_json_polygon_for_cadastre coordinates
|
||||
|
||||
polygon = {
|
||||
geom: {
|
||||
type: "Feature",
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
class ChangeStateConfirmedToValidated < ActiveRecord::Migration
|
||||
def change
|
||||
Dossier.where(state: 'confirmed').update_all(state: 'validated')
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,6 +7,5 @@ class DeleteAttributsToDossier < ActiveRecord::Migration
|
|||
|
||||
remove_column :dossiers, :position_lon
|
||||
remove_column :dossiers, :ref_dossier_carto
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
class BuildDefaultPreferenceListDossier < ActiveRecord::Migration
|
||||
class Gestionnaire < ActiveRecord::Base
|
||||
def build_default_preferences_list_dossier
|
||||
|
||||
PreferenceListDossier.available_columns.each do |table|
|
||||
table.second.each do |column|
|
||||
if valid_couple_table_attr? table.first, column.first
|
||||
|
|
|
@ -96,7 +96,6 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
|||
has_many :procedures, through: :assign_to
|
||||
|
||||
def build_default_preferences_list_dossier procedure_id=nil
|
||||
|
||||
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
||||
table.second.each do |column|
|
||||
if valid_couple_table_attr? table.first, column.first
|
||||
|
|
Loading…
Reference in a new issue