aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/coders/yaml_column.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/coders/yaml_column.rb b/activerecord/lib/active_record/coders/yaml_column.rb
index 8d22942a06..1aa82f20d6 100644
--- a/activerecord/lib/active_record/coders/yaml_column.rb
+++ b/activerecord/lib/active_record/coders/yaml_column.rb
@@ -33,7 +33,8 @@ module ActiveRecord
obj ||= object_class.new if object_class != Object
obj
- rescue ArgumentError, Psych::SyntaxError
+ rescue ArgumentError , Psych::SyntaxError => e
+ raise if e.to_s =~ /undefined class/
yaml
end
end