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: 60,111 of 192,588
Downloads: 18,111
Daily
Ranking: 110,796 of 192,564
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,309,729,156 | rake |
| 36 | 785,773,448 | activerecord |
| 38 | 774,412,865 | actionpack |
| 278 | 181,808,719 | sqlite3 |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ka8725 |