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,617 of 191,391
Downloads: 18,023
Daily
Ranking: 56,244 of 191,335
Downloads: 4
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 |
|---|---|---|
| 8 | 1,271,034,194 | rake |
| 36 | 769,358,067 | activerecord |
| 37 | 758,197,354 | actionpack |
| 278 | 177,123,484 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |