instance method
parse_yaml_string
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12 PrivateSignature
parse_yaml_string(fixture_content)
No documentation comment.
Parameters
-
fixture_contentreq
Source
# File activerecord/lib/active_record/fixtures.rb, line 714
def parse_yaml_string(fixture_content)
YAML::load(erb_render(fixture_content))
rescue *RESCUE_ERRORS => 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}", error.backtrace
end
Defined in activerecord/lib/active_record/fixtures.rb line 714
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Fixtures