aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-04-19 18:06:01 +0200
committerJosé Valim <jose.valim@gmail.com>2011-04-19 18:06:01 +0200
commitdca31b9224bd9feb23208d668a77d85ce062cf93 (patch)
tree8549c391186368634ab9d49056c2328c2790ce51 /activemodel/lib
parent30472d4244f08ad861590fb41dd75efb5f274422 (diff)
downloadrails-dca31b9224bd9feb23208d668a77d85ce062cf93.tar.gz
rails-dca31b9224bd9feb23208d668a77d85ce062cf93.tar.bz2
rails-dca31b9224bd9feb23208d668a77d85ce062cf93.zip
Let's not dup because value may not always be duplicable.
Diffstat (limited to 'activemodel/lib')
-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 137657bd29..3dc6a68e44 100644
--- a/activemodel/lib/active_model/attribute_methods.rb
+++ b/activemodel/lib/active_model/attribute_methods.rb
@@ -117,7 +117,7 @@ module ActiveModel
RUBY
else
value = value.to_s if value
- sing.send(:define_method, name) { value && value.dup }
+ sing.send(:define_method, name) { value }
end
end
end