diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-19 18:06:01 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-19 18:06:01 +0200 |
commit | dca31b9224bd9feb23208d668a77d85ce062cf93 (patch) | |
tree | 8549c391186368634ab9d49056c2328c2790ce51 | |
parent | 30472d4244f08ad861590fb41dd75efb5f274422 (diff) | |
download | rails-dca31b9224bd9feb23208d668a77d85ce062cf93.tar.gz rails-dca31b9224bd9feb23208d668a77d85ce062cf93.tar.bz2 rails-dca31b9224bd9feb23208d668a77d85ce062cf93.zip |
Let's not dup because value may not always be duplicable.
-rw-r--r-- | activemodel/lib/active_model/attribute_methods.rb | 2 |
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 |