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
Required Ruby Version
None
Authors
Andrey Koleshko
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
None
Andrey Koleshko