search for: defr

Displaying 1 result from an estimated 1 matches for "defr".

Did you mean: defa
2013 Nov 15
0
Please, take a look at PR #10848 "Allow to pass a block to `cattr_reader`."
Allow to pass a block to cattr_reader . cattr_accessor already accepts defaults using a block. So just unify the interface. Example: class A cattr_reader(:defr) { ''default_reader_value'' } end A.defr # => ''default_reader_value'' https://github.com/rails/rails/pull/10848 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group...