Categories: None [Edit]

get_or_build

https://rubygems.org/gems/get_or_build
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: 61,202 of 196,721
Downloads: 18,323

Daily

Ranking: 58,818 of 196,694
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,410,641,125rake
37835,846,227activerecord
38823,825,694actionpack
284194,725,346sqlite3

Owners

#GravatarHandle
1iconka8725