It returns requirement's proofs filtered by user specified as argument. At
the moment it returns just the first proof, but it's supposed to return all
user provided proofs for a specific argument.
Have you decided if you want multiple proofs by user for a single
requirement?
Le 17 mars 2014 00:25, "Akshat Pradhan" <notifications@github.com> a écrit :

> In app/models/requirement.rb:
>
> > @@ -2,5 +2,9 @@ class Requirement
> >    include Mongoid::Document
> >    field :name, type: String
> >    field :description, type: String
> > -  has_one :proof
> > +  has_many :proofs
> > +
> > +  def user_proof(user)
> > +    proofs.where(user: user).first
> > +  end
>
> @adamico <https://github.com/adamico> just a quick question while
> reviewing this old PR. What exactly does user_proof do?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/akshatpradhan/compliance_chimp/pull/20/files#r10642589>
> .
>