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: 58,873 of 187,950
Downloads: 17,777

Daily

Ranking: 66,059 of 187,922
Downloads: 9

Depended by

RankDownloadsName

Depends on

RankDownloadsName
101,176,878,843rake
36725,629,839activerecord
37715,406,664actionpack
275167,243,038sqlite3

Owners

#GravatarHandle
1iconka8725