rails/rails — pull request #10848 by 907th (2013-06-05 07:28:12+00:00)
Title: Fix #10847: allow to pass a block to `cattr_reader`.

Fix #10847

Example:

class A
cattr_reader(:defr) { 'default_reader_value' }
end
A.defr # => 'default_reader_value'