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,241 of 187,239
Downloads: 4,859

Daily

Ranking: 78,093 of 187,224
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
101,151,901,046rake
36711,658,717activerecord
274163,773,486sqlite3

Owners

#GravatarHandle
1iconka8725