From 55cb8c8f0d36b02a005ba784e5c4794c1d40d74a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 27 Mar 2005 13:56:02 +0000 Subject: 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 --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3