Hacker News new | ask | show | jobs
by tomstuart 5538 days ago
Even better to avoid chaining altogether by using delegation (cf. Law of Demeter) and taking advantage of the :allow_nil option to Active Support's Module#delegate (http://api.rubyonrails.org/classes/Module.html#method-i-dele...).