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,065 of 186,995
Downloads: 4,760

Daily

Ranking: 100,176 of 186,959
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
101,129,028,222rake
36698,603,704activerecord
276161,097,927sqlite3

Owners

#GravatarHandle
1iconka8725