RubyGems.org

Calling a delegated method on a nil object with better_delegation won't just return nil, it will return the default column value as specified by object being delegated to.

installgem install better_delegation
Authors

Josh N. Abbott

2,179 total downloads 2,179 for this version
Owners

6f348c571c100b4e49500d52d6e67bcc

Gemfile
gem 'better_delegation', '~> 1.0.0'
Versions
  1. 1.0.0 November 11, 2009 (8 KB)
Development Dependencies
  1. rspec >= 1.0