Bergrebell / CyberCoach

1 stars 1 forks source link

is a sport session of user which owns it always confirmed? or not? #100

Closed lexruee closed 9 years ago

lexruee commented 9 years ago

okay i got it. this is done here:

 # The user creating the entry also needs a SportSessionParticipant object
          SportSessionParticipant.where(
              :user_id => @rails_sport_session.user_id,
              :sport_session_id => @rails_sport_session.id,
              :confirmed => true
          ).first_or_create