Skip to content

Instantly share code, notes, and snippets.

@tokafish
Created February 26, 2016 17:35
Show Gist options
  • Save tokafish/4e3564b75dc30bfbc180 to your computer and use it in GitHub Desktop.
Save tokafish/4e3564b75dc30bfbc180 to your computer and use it in GitHub Desktop.
defmodule Phoenix.Ecto.SQL.Sandbox do
@config_path "/phoenix/ecto/sql/sandbox/"
def path_for(repo, pid) do
"#{@config_path}#{:erlang.pid_to_list(pid)}|#{Atom.to_string(repo)}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment