Skip to content
Browse files

Let's not dup because value may not always be duplicable.

  • Loading branch information...
1 parent 30472d4 commit dca31b9224bd9feb23208d668a77d85ce062cf93 @josevalim josevalim committed Apr 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/attribute_methods.rb
View
2 activemodel/lib/active_model/attribute_methods.rb
@@ -117,7 +117,7 @@ def #{name}; #{value.nil? ? 'nil' : value.to_s.inspect}; end
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

0 comments on commit dca31b9

Please sign in to comment.
Something went wrong with that request. Please try again.