Player include Scopes::Player
Player#instance_methods
Player#im (EnsurePlayerMatchStatsLoaded)
(Note) if !EnsurePlayerMatchStatsLoaded match_stats association must be preloaded to avoid N+1 query problems. Use the '.with_match_stats' scope. rucks = Player.rucks.with_match_stats(year: 2023) rucks = Player.rucks.with_match_stats(year: 2023, round: 1) rucks = Player.rucks.with_match_stats(year: 2023, round: 1..3) |
Player#im (EnsurePlayerMatchStatsLoaded)
|
Cheatography
https://cheatography.com
A5: Cheat Sheet Models Player Cheat Sheet (DRAFT) by baxter2
A5: Cheat Sheet Models Player
This is a draft cheat sheet. It is a work in progress and is not finished yet.