Skip to content

Commit

Permalink
Remove dead, buggy code
Browse files Browse the repository at this point in the history
  • Loading branch information
fredZen committed Oct 10, 2018
1 parent fbdb3ad commit c1f18a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions app/facades/dossier_facades.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ def etablissement
@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
Expand Down
4 changes: 0 additions & 4 deletions app/models/dossier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ def build_default_individual
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
Expand Down

0 comments on commit c1f18a1

Please sign in to comment.