Show Menu
Cheatography

A5: Cheat Sheet Models Match Cheat Sheet (DRAFT) by

A5: Cheat Sheet Models Match

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Match include Scopes­::Match

.completed
.bye

Match Associ­ations

#home_team
#away_team
#playe­r_m­atc­h_stats
#players
#playe­rs_­tha­t_p­layed
#playe­rs_­wit­h_h­itouts

Match#­ins­tan­ce_­methods

#home_­tea­m_win?
#away_­tea­m_win?
#draw?
#sched­uled?
#playing?
#compl­eted?

Match#im (Ensur­ePl­aye­rMa­tch­Sta­tsL­oaded)

#both_­team_fp
#home_­team_fp
#away_­team_fp