diff options
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
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 |