demarches-normaliennes/app/models/ref_pieces_jointe.rb
Tanguy PATTE 3c57643f76 add database cleaner
add factory girl
fix tests
rename dossier_pdf into piece_jointe
rename ref_piece_jointe into content
2015-08-13 15:56:58 +02:00

8 lines
206 B
Ruby

class RefPiecesJointe < ActiveRecord::Base
# TODO: test this methods
def self.get_liste_piece_jointe ref_formulaire
RefPiecesJointe.where ("\"CERFA\" = '#{ref_formulaire.ref_demarche}'")
end
end