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,858 of 192,588
Downloads: 5,137

Daily

Ranking: 71,210 of 192,564
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,309,729,156rake
36785,773,448activerecord
278181,808,719sqlite3

Owners

#GravatarHandle
1iconka8725