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: 130,367 of 198,430
Downloads: 5,292

Daily

Ranking: 89,752 of 198,401
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,462,600,952rake
37866,211,346activerecord
285201,634,282sqlite3

Owners

#GravatarHandle
1iconka8725