aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-03-17 10:31:12 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-17 10:31:12 -0700
commit4532b39f5faa15af957e3b41b671f07ed201488d (patch)
treec2becda6f567606ddfcd35ef6f1d8be0ece5accc /activemodel
parent00f08793677a164bd728a6576e20241697e61c35 (diff)
downloadrails-4532b39f5faa15af957e3b41b671f07ed201488d.tar.gz
rails-4532b39f5faa15af957e3b41b671f07ed201488d.tar.bz2
rails-4532b39f5faa15af957e3b41b671f07ed201488d.zip
remove misleading comment
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/attribute_methods.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb
index c985eb293b..76bfd4b77d 100644
--- a/activemodel/lib/active_model/attribute_methods.rb
+++ b/activemodel/lib/active_model/attribute_methods.rb
@@ -106,8 +106,6 @@ module ActiveModel
if block_given?
sing.send :define_method, name, &block
else
- # use eval instead of a block to work around a memory leak in dev
- # mode in fcgi
value = value.nil? ? 'nil' : value.to_s
sing.send(:define_method, name) { value.dup }
end