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,259 of 189,432
Downloads: 17,969
Daily
Ranking: 96,800 of 189,408
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 |
|---|---|---|
| 9 | 1,232,715,961 | rake |
| 36 | 751,227,832 | activerecord |
| 37 | 740,315,449 | actionpack |
| 277 | 172,842,777 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |