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,150 of 187,571
Downloads: 4,905

Daily

Ranking: 77,922 of 187,548
Downloads: 6

Depended by

RankDownloadsName

Depends on

RankDownloadsName
101,165,196,519rake
36719,366,671activerecord
275165,696,742sqlite3

Owners

#GravatarHandle
1iconka8725