Merge pull request #2789 from betagouv/frederic/remove_dead_code

Remove dead, buggy code
This commit is contained in:
Frederic Merizen 2018-10-10 08:12:08 +02:00 committed by GitHub
commit b6b4a76906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View file

@ -17,10 +17,6 @@ class DossierFacades
@dossier.etablissement
end
def pieces_justificatives
@dossier.ordered_pieces_justificatives
end
def types_de_pieces_justificatives
@dossier.types_de_piece_justificative.order('order_place ASC')
end

View file

@ -118,10 +118,6 @@ class Dossier < ApplicationRecord
end
end
def ordered_pieces_justificatives
champs.joins(', types_de_piece_justificative').where("pieces_justificatives.type_de_piece_justificative_id = types_de_piece_justificative.id AND types_de_piece_justificative.procedure_id = #{procedure.id}").order('order_place ASC')
end
def en_construction_ou_instruction?
EN_CONSTRUCTION_OU_INSTRUCTION.include?(state)
end