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: 125,839 of 183,127
Downloads: 4,562

Daily

Ranking: 74,510 of 183,106
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
10954,475,095rake
35596,341,077activerecord
253141,575,949sqlite3

Owners

#GravatarHandle
1iconka8725