diff options
author | Peter Wagenet <peter.wagenet@gmail.com> | 2010-08-06 13:00:04 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-08-16 18:36:12 -0700 |
commit | ad53b68457af0f3c4e875309f298335a17b9029c (patch) | |
tree | cbad6ec8720988bff174b73014a491ddb2bc8a19 /activesupport/lib | |
parent | fb6b80562041e8d2378cad1b51f8c234fe76fd5e (diff) | |
download | rails-ad53b68457af0f3c4e875309f298335a17b9029c.tar.gz rails-ad53b68457af0f3c4e875309f298335a17b9029c.tar.bz2 rails-ad53b68457af0f3c4e875309f298335a17b9029c.zip |
Class Attribute setter returns set value
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/attribute.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/attribute.rb b/activesupport/lib/active_support/core_ext/class/attribute.rb index 79d5c40e5f..688cba03db 100644 --- a/activesupport/lib/active_support/core_ext/class/attribute.rb +++ b/activesupport/lib/active_support/core_ext/class/attribute.rb @@ -72,6 +72,7 @@ class Class remove_possible_method(:#{name}) define_method(:#{name}) { val } end + val end def #{name} |