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,215 of 189,968
Downloads: 5,067

Daily

Ranking: 83,278 of 189,933
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,249,142,844rake
36758,852,060activerecord
278174,384,924sqlite3

Owners

#GravatarHandle
1iconka8725