diff --git a/.rubocop.yml b/.rubocop.yml index 3d4951b13..7e78d09be 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -40,7 +40,7 @@ Layout/EmptyLineAfterMagicComment: Enabled: true Layout/EmptyLineBetweenDefs: - Enabled: false + Enabled: true Layout/EmptyLines: Enabled: false diff --git a/app/controllers/admin/gestionnaires_controller.rb b/app/controllers/admin/gestionnaires_controller.rb index e2e5aa343..197489c9c 100644 --- a/app/controllers/admin/gestionnaires_controller.rb +++ b/app/controllers/admin/gestionnaires_controller.rb @@ -11,7 +11,6 @@ class Admin::GestionnairesController < AdminController @gestionnaire ||= Gestionnaire.new end - def create @gestionnaire = Gestionnaire.find_by_email(params[:gestionnaire][:email]) procedure_id = params[:procedure_id] diff --git a/app/controllers/backoffice/dossiers_controller.rb b/app/controllers/backoffice/dossiers_controller.rb index 7014e8c8d..ec3524100 100644 --- a/app/controllers/backoffice/dossiers_controller.rb +++ b/app/controllers/backoffice/dossiers_controller.rb @@ -172,7 +172,6 @@ class Backoffice::DossiersController < Backoffice::DossiersListController redirect_to backoffice_dossiers_path end - def unarchive @dossier = Dossier.find(params[:id]) if @dossier.archived diff --git a/app/services/dossier_service.rb b/app/services/dossier_service.rb index 511e4e1d9..d6bdaddfc 100644 --- a/app/services/dossier_service.rb +++ b/app/services/dossier_service.rb @@ -34,7 +34,6 @@ class DossierService @dossier end - def self.siren siret siret[0..8] end diff --git a/db/migrate/20160120094750_create_france_connect_information.rb b/db/migrate/20160120094750_create_france_connect_information.rb index 8cddaa780..91b47ec10 100644 --- a/db/migrate/20160120094750_create_france_connect_information.rb +++ b/db/migrate/20160120094750_create_france_connect_information.rb @@ -38,7 +38,6 @@ class CreateFranceConnectInformation < ActiveRecord::Migration remove_column :users, :france_connect_particulier_id end - def down add_column :users, :gender, :string add_column :users, :given_name, :string