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,030 of 196,106
Downloads: 5,251

Daily

Ranking: 60,696 of 196,079
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,393,995,228rake
37826,698,318activerecord
281192,385,988sqlite3

Owners

#GravatarHandle
1iconka8725