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: 60,299 of 193,188
Downloads: 18,162
Daily
Ranking: 66,334 of 193,154
Downloads: 3
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,329,290,503 | rake |
| 36 | 793,660,028 | activerecord |
| 38 | 782,189,070 | actionpack |
| 279 | 183,787,701 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |