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: 61,507 of 197,085
Downloads: 18,339
Daily
Ranking: 87,723 of 197,066
Downloads: 0
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,428,256,062 | rake |
| 37 | 845,746,438 | activerecord |
| 39 | 833,699,686 | actionpack |
| 285 | 196,939,989 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |