krists/refile-postgres

View on GitHub
lib/generators/refile/postgres/initializer/templates/refile.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "refile"
Refile.configure do |config|
  connection = lambda { |&blk| ActiveRecord::Base.connection_pool.with_connection { |con| blk.call(con.raw_connection) } }
  config.store = Refile::Postgres::Backend.new(connection)
end