aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-03-18 13:35:57 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-03-22 19:36:16 -0300
commitda6c7bd4b411105e7556ff5015e3c9f6ab1d26fe (patch)
tree8697d8d2a51c85bed762ba901c1a55c2f8f0b8c1 /activemodel/lib/active_model
parente06c44800284696868a1e6a273abefec3047312f (diff)
downloadrails-da6c7bd4b411105e7556ff5015e3c9f6ab1d26fe.tar.gz
rails-da6c7bd4b411105e7556ff5015e3c9f6ab1d26fe.tar.bz2
rails-da6c7bd4b411105e7556ff5015e3c9f6ab1d26fe.zip
Do not in place modify what table_name returns
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/attribute_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb
index 73468afe55..f6648ea43e 100644
--- a/activemodel/lib/active_model/attribute_methods.rb
+++ b/activemodel/lib/active_model/attribute_methods.rb
@@ -107,7 +107,7 @@ module ActiveModel
sing.send :define_method, name, &block
else
value = value.to_s if value
- sing.send(:define_method, name) { value && value.dup }
+ sing.send(:define_method, name) { value }
end
end