Categories: None [Edit]

GetOrBuild

https://rubygems.org/gems/GetOrBuild
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: 129,863 of 197,051
Downloads: 5,262

Daily

Ranking: 67,605 of 197,010
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,427,168,861rake
37845,130,767activerecord
285196,796,104sqlite3

Owners

#GravatarHandle
1iconka8725