Sha256: 6ba2ab4cee228a608b3a228be5d4877c9da70aaa9f89fa06a820f09a19e2dbf6

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

ROM::Rails::Railtie.configure do |config|
  db_config = ROM::Rails::ActiveRecord::Configuration.build(
    Rails.application.config.database_configuration[Rails.env].symbolize_keys
    .merge(root: Rails.root)
  )

  config.repositories[:default] = [:sql, db_config[:uri], db_config[:options]]

  config.repositories[:test] = [:test_adapter, foo: :bar]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-rails-0.3.2 spec/dummy/config/initializers/rom.rb