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: 62,178 of 199,228
Downloads: 18,437
Daily
Ranking: 62,963 of 199,184
Downloads: 7
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 |
|---|---|---|
| 7 | 1,480,270,976 | rake |
| 37 | 876,949,277 | activerecord |
| 40 | 865,018,827 | actionpack |
| 287 | 204,093,631 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |