Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit dca31b9224bd9feb23208d668a77d85ce062cf93 1 parent 30472d4
@josevalim josevalim authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.