Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (4 sloc) 308 Bytes

Delegate with Default

This Rails plugin redefines the Module#delegate method to allow a :default option.
If the object we are delegating to is nil, the default will be returned instead of an
exception being raised. See the blog post.