aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-27 13:56:02 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-27 13:56:02 +0000
commit55cb8c8f0d36b02a005ba784e5c4794c1d40d74a (patch)
treef864797d56de26f15a0dd167be52ff23d12d8a4e /activerecord
parent065cb2a08d6b0fe7683f98b69af1cee2ce3e69cd (diff)
downloadrails-55cb8c8f0d36b02a005ba784e5c4794c1d40d74a.tar.gz
rails-55cb8c8f0d36b02a005ba784e5c4794c1d40d74a.tar.bz2
rails-55cb8c8f0d36b02a005ba784e5c4794c1d40d74a.zip
Fixed that Active Record objects with float attribute could not be cloned #808
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 70138ac379..f5a531c8ba 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1048,7 +1048,7 @@ module ActiveRecord #:nodoc:
self.attribute_names.inject({}) do |attributes, name|
begin
attributes[name] = read_attribute(name).clone
- rescue TypeError
+ rescue TypeError, NoMethodError
attributes[name] = read_attribute(name)
end
attributes