mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
fix warnings
This commit is contained in:
parent
128f63639f
commit
7bb79bc17f
2 changed files with 7 additions and 5 deletions
|
@ -102,7 +102,9 @@ defmodule PhilomenaWeb.AppView do
|
|||
end
|
||||
end
|
||||
|
||||
def button_to(route, args \\ [], do: fun) do
|
||||
def button_to(text, route, args \\ [])
|
||||
|
||||
def button_to(route, args, do: fun) do
|
||||
method = Keyword.get(args, :method, "get")
|
||||
class = Keyword.get(args, :class, nil)
|
||||
data = Keyword.get(args, :data, [])
|
||||
|
|
Loading…
Reference in a new issue