instance method rows

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5 Private

Signature

rows()

No documentation comment.

Source
# File activerecord/lib/active_record/fixtures/file.rb, line 39
      def rows
        return @rows if @rows

        begin
          data = YAML.load(render(IO.read(@file)))
        rescue *RESCUE_ERRORS => 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
        @rows = data ? validate(data).to_a : []
      end

Defined in activerecord/lib/active_record/fixtures/file.rb line 39 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Fixtures::File

Type at least 2 characters to search.

↑↓ navigate · open · esc close