ClickGems by ClickHouse
--
to
--

get_or_build

Authors: Andrey Koleshko
Summary: 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

Can't find the visual you need? Build your own here

Download

12

last day

62

last month

16K

total

Version

All

version

0.0.3get_or_build

latest version

RubyGem Downloads Over Time

loading-iconLoading

Top RubyGem Versions

loading-iconLoading

Downloads by Ruby Version Over Time

loading-iconLoading

Downloads by System Over Time

loading-iconLoading

RubyGem Downloads by Country

loading-iconLoading
© 2026 ClickHouse, Inc. HQ in the Bay Area, CA and Amsterdam, NL.