Skip to content

Commit

Permalink
Use Macro instead of Mix.Utils to camelize strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Batyuk committed Mar 21, 2018
1 parent 9271c60 commit cee0282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/addict/mailers/mailers.ex
Expand Up @@ -14,7 +14,7 @@ defmodule Addict.Mailers do
end

defp do_send_email(to, from, subject, html_body, mail_service) do
mail_service = to_string(mail_service) |> Mix.Utils.camelize
mail_service = to_string(mail_service) |> Macro.camelize
mailer = Module.concat Addict.Mailers, mail_service
mailer.send_email(to, from, subject, html_body)
end
Expand Down

0 comments on commit cee0282

Please sign in to comment.