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,344 of 196,721
Downloads: 5,254

Daily

Ranking: 58,818 of 196,694
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,410,641,125rake
37835,846,227activerecord
284194,725,346sqlite3

Owners

#GravatarHandle
1iconka8725