aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xactiverecord/lib/active_record/fixtures.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb
index e0b713fb83..6ee963951e 100755
--- a/activerecord/lib/active_record/fixtures.rb
+++ b/activerecord/lib/active_record/fixtures.rb
@@ -308,7 +308,7 @@ class Fixtures < YAML::Omap
# YAML fixtures
begin
if yaml = YAML::load(erb_render(IO.read(yaml_file_path)))
- yaml = yaml.value if yaml.kind_of?(YAML::Syck::PrivateType)
+ yaml = yaml.value if yaml.respond_to?(:type_id) and yaml.respond_to?(:value)
yaml.each do |name, data|
self[name] = Fixture.new(data, @class_name)
end