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,229 of 193,756
Downloads: 5,175

Daily

Ranking: 110,042 of 193,649
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,345,947,699rake
36801,545,420activerecord
279185,971,812sqlite3

Owners

#GravatarHandle
1iconka8725