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: 128,071 of 193,188
Downloads: 5,161

Daily

Ranking: 83,587 of 193,154
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,329,290,503rake
36793,660,028activerecord
279183,787,701sqlite3

Owners

#GravatarHandle
1iconka8725