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,783 of 199,228
Downloads: 5,315

Daily

Ranking: 163,103 of 199,184
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,480,270,976rake
37876,949,277activerecord
287204,093,631sqlite3

Owners

#GravatarHandle
1iconka8725