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: 59,157 of 187,571
Downloads: 17,541
Daily
Ranking: 21,343 of 187,548
Downloads: 21
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,165,196,519 | rake |
| 36 | 719,366,671 | activerecord |
| 37 | 709,206,703 | actionpack |
| 275 | 165,696,742 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |