Categories: None [Edit]

GetOrBuild

https://rubygems.org/gems/GetOrBuild
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: 127,628 of 192,071
Downloads: 5,122

Daily

Ranking: 127,069 of 192,060
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,290,393,700rake
36778,076,182activerecord
279179,320,202sqlite3

Owners

#GravatarHandle
1iconka8725