method
raw_rows
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::FixtureSet::File
raw_rows()private
No documentation available.
# File activerecord/lib/active_record/fixture_set/file.rb, line 51
def raw_rows
@raw_rows ||= begin
data = ActiveSupport::ConfigurationFile.parse(@file, context:
ActiveRecord::FixtureSet::RenderContext.create_subclass.new.get_binding)
data ? validate(data).to_a : []
rescue RuntimeError => error
raise Fixture::FormatError, error.message
end
end