Sha256: 92aa84ac517978aad877578bd5a36682ecbc5229f2ae1e52c3c9ce674b07ec7f

Contents?: true

Size: 314 Bytes

Versions: 6

Compression:

Stored size: 314 Bytes

Contents

module MemoryTestFix
  # Load Rails schema file into in-memory database.
  # @api private
  module SchemaFileLoader
    # Load the Rails schema file.
    def self.load_schema
      # TODO: Use tooling provided by rails once support for Rails 3 is dropped.
      load "#{Rails.root}/db/schema.rb"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
memory_test_fix-1.5.0 lib/memory_test_fix/schema_file_loader.rb
memory_test_fix-1.4.2 lib/memory_test_fix/schema_file_loader.rb
memory_test_fix-1.4.1 lib/memory_test_fix/schema_file_loader.rb
memory_test_fix-1.4.0 lib/memory_test_fix/schema_file_loader.rb
memory_test_fix-1.3.0 lib/memory_test_fix/schema_file_loader.rb
memory_test_fix-1.2.2 lib/memory_test_fix/schema_file_loader.rb