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: 126,026 of 183,477
Downloads: 4,578

Daily

Ranking: 63,432 of 183,470
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
10969,073,546rake
35604,924,275activerecord
259143,118,777sqlite3

Owners

#GravatarHandle
1iconka8725