class ActiveRecord::FixtureSet::File

def validate(data)

Validate our unmarshalled data.
def validate(data)
  unless Hash === data || YAML::Omap === data
    raise Fixture::FormatError, "fixture is not a hash: #{@file}"
  end
  invalid = data.reject { |_, row| Hash === row }
  if invalid.any?
    raise Fixture::FormatError, "fixture key is not a hash: #{@file}, keys: #{invalid.keys.inspect}"
  end
  data
end