From ad53b68457af0f3c4e875309f298335a17b9029c Mon Sep 17 00:00:00 2001 From: Peter Wagenet Date: Fri, 6 Aug 2010 13:00:04 -0700 Subject: Class Attribute setter returns set value Signed-off-by: wycats --- activesupport/lib/active_support/core_ext/class/attribute.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib/active_support/core_ext/class') 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} -- cgit v1.2.3