forked from shibao/cannery
		
	improve invites, record usage
This commit is contained in:
		@@ -43,7 +43,7 @@ defmodule Cannery.DataCase do
 | 
			
		||||
  """
 | 
			
		||||
  def errors_on(changeset) do
 | 
			
		||||
    Ecto.Changeset.traverse_errors(changeset, fn {message, opts} ->
 | 
			
		||||
      Regex.replace(~r"%{(\w+)}", message, fn _content, key ->
 | 
			
		||||
      Regex.replace(~r"%{(\w+)}", message, fn _capture, key ->
 | 
			
		||||
        opts |> Keyword.get(String.to_existing_atom(key), key) |> to_string()
 | 
			
		||||
      end)
 | 
			
		||||
    end)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user