diff options
author | Alexey Chernenkov <laise@pisem.net> | 2013-06-05 13:05:53 +0600 |
---|---|---|
committer | Alexey Chernenkov <laise@pisem.net> | 2013-11-15 19:54:51 +0600 |
commit | 0e953c94b152abf0de1c04dba74c22f935bc85c7 (patch) | |
tree | a916e031786e90c2fc96200b573d51e879e9ffb8 /activesupport/test/fixtures | |
parent | 81475534ed9e2e1b7bade50f1e1099975e385a46 (diff) | |
download | rails-0e953c94b152abf0de1c04dba74c22f935bc85c7.tar.gz rails-0e953c94b152abf0de1c04dba74c22f935bc85c7.tar.bz2 rails-0e953c94b152abf0de1c04dba74c22f935bc85c7.zip |
Unify `cattr_*` interface: allow to pass a block to `cattr_reader`.
Example:
class A
cattr_reader(:defr) { 'default_reader_value' }
end
A.defr # => 'default_reader_value'
Diffstat (limited to 'activesupport/test/fixtures')
0 files changed, 0 insertions, 0 deletions