This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
validate(data)
private
Validate our unmarshalled data.
# File activerecord/lib/active_record/fixtures/file.rb, line 55
def validate(data)
unless Hash === data || YAML::Omap === data
raise Fixture::FormatError, 'fixture is not a hash'
end
raise Fixture::FormatError unless data.all? { |name, row| Hash === row }
data
end