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,441 of 189,968
Downloads: 17,992
Daily
Ranking: 122,573 of 189,933
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,249,142,844 | rake |
| 36 | 758,852,060 | activerecord |
| 37 | 747,815,357 | actionpack |
| 278 | 174,384,924 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |