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: 60,111 of 192,588
Downloads: 18,111

Daily

Ranking: 110,796 of 192,564
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,309,729,156rake
36785,773,448activerecord
38774,412,865actionpack
278181,808,719sqlite3

Owners

#GravatarHandle
1iconka8725