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,936 of 188,317
Downloads: 17,891
Daily
Ranking: 61,414 of 188,299
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 |
|---|---|---|
| 10 | 1,190,757,019 | rake |
| 36 | 733,883,063 | activerecord |
| 37 | 723,299,122 | actionpack |
| 275 | 169,331,163 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |