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: 127,315 of 191,391
Downloads: 5,091

Daily

Ranking: 98,709 of 191,335
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,271,034,194rake
36769,358,067activerecord
278177,123,484sqlite3

Owners

#GravatarHandle
1iconka8725