Categories: None [Edit]
get_or_build
Assume user belongs_to company and you want to get company object within one method call. You can do it like this: user.company_or_build
Total
Ranking: 58,873 of 187,950
Downloads: 17,777
Daily
Ranking: 66,059 of 187,922
Downloads: 9
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,176,878,843 | rake |
| 36 | 725,629,839 | activerecord |
| 37 | 715,406,664 | actionpack |
| 275 | 167,243,038 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |