 defmodule ExAdmin.AssociationController do
+  @moduledoc false
   use ExAdmin.Web, :controller
   require Logger
 

  defp prepare_positions(%{position_column: nil}, positions), do: positions
  defp prepare_positions(%{position_column: position_column}, positions) do
    position_column = to_string(position_column)
    positions 
    |> Enum.map(fn({idx, %{"id" => id, "position" => position}}) ->
      {idx, %{"id" => id, position_column => position}}
    end)

  end

  defp repo, do: Application.get_env(:ex_admin, :repo)
end
