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,902 of 198,430
Downloads: 18,380
Daily
Ranking: 89,752 of 198,401
Downloads: 1
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,462,600,952 | rake |
| 37 | 866,211,346 | activerecord |
| 40 | 854,044,273 | actionpack |
| 285 | 201,634,282 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |