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,136 of 189,432
Downloads: 5,051

Daily

Ranking: 96,800 of 189,408
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
91,232,715,961rake
36751,227,832activerecord
277172,842,777sqlite3

Owners

#GravatarHandle
1iconka8725