Skip to content

Instantly share code, notes, and snippets.

@tokafish
Created February 26, 2016 17:27
Show Gist options
  • Save tokafish/996aa8ac715e1e47b92f to your computer and use it in GitHub Desktop.
Save tokafish/996aa8ac715e1e47b92f to your computer and use it in GitHub Desktop.
defmodule ConcurrentAcceptance.Endpoint do
# rest of endpoint omitted
if Application.get_env(:concurrent_acceptance, :sql_sandbox) do
plug Phoenix.Ecto.SQL.Sandbox
end
plug ConcurrentAcceptance.Router
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment