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: 59,441 of 189,968
Downloads: 17,992

Daily

Ranking: 122,573 of 189,933
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,249,142,844rake
36758,852,060activerecord
37747,815,357actionpack
278174,384,924sqlite3

Owners

#GravatarHandle
1iconka8725