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: 130,189 of 197,744
Downloads: 5,270

Daily

Ranking: 57,584 of 197,724
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,444,561,272rake
37855,219,427activerecord
285199,063,254sqlite3

Owners

#GravatarHandle
1iconka8725