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,484 of 183,127
Downloads: 15,229
Daily
Ranking: 74,510 of 183,106
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 | 954,475,095 | rake |
35 | 596,341,077 | activerecord |
38 | 588,365,328 | actionpack |
253 | 141,575,949 | sqlite3 |
Owners
# | Gravatar | Handle |
---|---|---|
1 | ka8725 |