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,553 of 183,477
Downloads: 15,304
Daily
Ranking: 63,432 of 183,470
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 |
---|---|---|
10 | 969,073,546 | rake |
35 | 604,924,275 | activerecord |
38 | 596,725,118 | actionpack |
259 | 143,118,777 | sqlite3 |
Owners
# | Gravatar | Handle |
---|---|---|
1 | ka8725 |