method

raw_rows

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: File
raw_rows() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/fixture_set/file.rb, line 48
        def raw_rows
          @raw_rows ||= begin
            data = YAML.load(render(IO.read(@file)))
            data ? validate(data).to_a : []
          rescue ArgumentError, Psych::SyntaxError => error
            raise Fixture::FormatError, "a YAML error occurred parsing #{@file}. 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
        end
Register or log in to add new notes.