private Method

Fixtures.parse_yaml_string(fixture_content)

There's no documentation for this item.

Source Code

# File active_record/fixtures.rb, line 745
def parse_yaml_string(fixture_content)
  YAML::load(erb_render(fixture_content))
rescue => error
  raise Fixture::FormatError, "a YAML error occurred parsing #{yaml_file_path}. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Please have a look at http://www.yaml.org/faq.html\nThe exact error was:\n  #{error.class}: #{error}"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.