Remove dead, buggy code

This commit is contained in:
Frederic Merizen 2018-10-10 05:21:50 +02:00
parent fbdb3ad8bb
commit c1f18a164d
2 changed files with 0 additions and 8 deletions

View file

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

View file

@ -118,10 +118,6 @@ class Dossier < ApplicationRecord
end end
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? def en_construction_ou_instruction?
EN_CONSTRUCTION_OU_INSTRUCTION.include?(state) EN_CONSTRUCTION_OU_INSTRUCTION.include?(state)
end end