Enable the Layout/AlignParameters cop
This commit is contained in:
parent
50fad54538
commit
9439e1abb1
39 changed files with 221 additions and 220 deletions
|
@ -1,6 +1,6 @@
|
|||
class CerfaSerializer < ActiveModel::Serializer
|
||||
attributes :created_at,
|
||||
:content_url
|
||||
:content_url
|
||||
|
||||
has_one :user
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class CommentaireSerializer < ActiveModel::Serializer
|
||||
attributes :email,
|
||||
:body,
|
||||
:created_at
|
||||
:body,
|
||||
:created_at
|
||||
end
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
class DossierSerializer < ActiveModel::Serializer
|
||||
attributes :id,
|
||||
:created_at,
|
||||
:updated_at,
|
||||
:archived,
|
||||
:mandataire_social,
|
||||
:state,
|
||||
:simplified_state,
|
||||
:initiated_at,
|
||||
:received_at,
|
||||
:processed_at,
|
||||
:accompagnateurs,
|
||||
:invites
|
||||
:created_at,
|
||||
:updated_at,
|
||||
:archived,
|
||||
:mandataire_social,
|
||||
:state,
|
||||
:simplified_state,
|
||||
:initiated_at,
|
||||
:received_at,
|
||||
:processed_at,
|
||||
:accompagnateurs,
|
||||
:invites
|
||||
|
||||
has_one :entreprise
|
||||
has_one :etablissement
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
class DossierTableExportSerializer < ActiveModel::Serializer
|
||||
attributes :id,
|
||||
:created_at,
|
||||
:updated_at,
|
||||
:archived,
|
||||
:mandataire_social,
|
||||
:state,
|
||||
:initiated_at,
|
||||
:received_at,
|
||||
:processed_at
|
||||
:created_at,
|
||||
:updated_at,
|
||||
:archived,
|
||||
:mandataire_social,
|
||||
:state,
|
||||
:initiated_at,
|
||||
:received_at,
|
||||
:processed_at
|
||||
|
||||
attribute :emails_accompagnateurs
|
||||
|
||||
attributes :individual_gender,
|
||||
:individual_prenom,
|
||||
:individual_nom,
|
||||
:individual_birthdate
|
||||
:individual_prenom,
|
||||
:individual_nom,
|
||||
:individual_birthdate
|
||||
|
||||
def individual_prenom
|
||||
object.individual.try(:prenom)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DossiersSerializer < ActiveModel::Serializer
|
||||
attributes :id,
|
||||
:updated_at
|
||||
:updated_at
|
||||
end
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
class EntrepriseSerializer < ActiveModel::Serializer
|
||||
attributes :siren,
|
||||
:capital_social,
|
||||
:numero_tva_intracommunautaire,
|
||||
:forme_juridique,
|
||||
:forme_juridique_code,
|
||||
:nom_commercial,
|
||||
:raison_sociale,
|
||||
:siret_siege_social,
|
||||
:code_effectif_entreprise,
|
||||
:date_creation,
|
||||
:nom,
|
||||
:prenom
|
||||
:capital_social,
|
||||
:numero_tva_intracommunautaire,
|
||||
:forme_juridique,
|
||||
:forme_juridique_code,
|
||||
:nom_commercial,
|
||||
:raison_sociale,
|
||||
:siret_siege_social,
|
||||
:code_effectif_entreprise,
|
||||
:date_creation,
|
||||
:nom,
|
||||
:prenom
|
||||
end
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
class EtablissementSerializer < ActiveModel::Serializer
|
||||
attributes :siret,
|
||||
:siege_social,
|
||||
:naf,
|
||||
:libelle_naf,
|
||||
:adresse,
|
||||
:numero_voie,
|
||||
:type_voie,
|
||||
:nom_voie,
|
||||
:complement_adresse,
|
||||
:code_postal,
|
||||
:localite,
|
||||
:code_insee_localite
|
||||
|
||||
:siege_social,
|
||||
:naf,
|
||||
:libelle_naf,
|
||||
:adresse,
|
||||
:numero_voie,
|
||||
:type_voie,
|
||||
:nom_voie,
|
||||
:complement_adresse,
|
||||
:code_postal,
|
||||
:localite,
|
||||
:code_insee_localite
|
||||
end
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
class ModuleApiCartoSerializer < ActiveModel::Serializer
|
||||
attributes :use_api_carto,
|
||||
:quartiers_prioritaires,
|
||||
:cadastre
|
||||
|
||||
|
||||
:quartiers_prioritaires,
|
||||
:cadastre
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class PieceJustificativeSerializer < ActiveModel::Serializer
|
||||
attributes :created_at,
|
||||
:type_de_piece_justificative_id,
|
||||
:content_url
|
||||
:type_de_piece_justificative_id,
|
||||
:content_url
|
||||
|
||||
has_one :user
|
||||
end
|
||||
|
|
|
@ -3,13 +3,12 @@ class ProcedureSerializer < ActiveModel::Serializer
|
|||
attribute :lien_demarche, key: :link
|
||||
|
||||
attributes :id,
|
||||
:description,
|
||||
:organisation,
|
||||
:direction,
|
||||
:archived,
|
||||
:geographic_information,
|
||||
:total_dossier
|
||||
|
||||
:description,
|
||||
:organisation,
|
||||
:direction,
|
||||
:archived,
|
||||
:geographic_information,
|
||||
:total_dossier
|
||||
|
||||
has_one :geographic_information, serializer: ModuleApiCartoSerializer
|
||||
has_many :types_de_champ, serializer: TypeDeChampSerializer
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class TypeDeChampSerializer < ActiveModel::Serializer
|
||||
attributes :id,
|
||||
:libelle,
|
||||
:type_champ,
|
||||
:order_place,
|
||||
:description
|
||||
:libelle,
|
||||
:type_champ,
|
||||
:order_place,
|
||||
:description
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class TypeDePieceJustificativeSerializer < ActiveModel::Serializer
|
||||
attributes :id,
|
||||
:libelle,
|
||||
:description,
|
||||
:order_place,
|
||||
:lien_demarche
|
||||
:libelle,
|
||||
:description,
|
||||
:order_place,
|
||||
:lien_demarche
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue