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,707 of 197,744
Downloads: 18,350

Daily

Ranking: 105,941 of 197,724
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,444,561,272rake
37855,219,427activerecord
40843,106,738actionpack
285199,063,254sqlite3

Owners

#GravatarHandle
1iconka8725