demarches-normaliennes/app/models/ref_pieces_jointe.rb

9 lines
206 B
Ruby
Raw Normal View History

2015-08-10 11:05:06 +02:00
class RefPiecesJointe < ActiveRecord::Base
# TODO: test this methods
def self.get_liste_piece_jointe ref_formulaire
RefPiecesJointe.where ("\"CERFA\" = '#{ref_formulaire.ref_demarche}'")
end
2015-08-10 11:05:06 +02:00
end