Skip to content

Commit

Permalink
fix: Clean up compiler warnings in 1.11 versions of Elixir
Browse files Browse the repository at this point in the history
  • Loading branch information
staylorwr committed May 21, 2021
1 parent c3a2bfa commit 836de32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ex_teal/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ defmodule ExTeal.Resource do
end

def to_json(resource, conn \\ nil) do
singular = resource.title |> Inflex.underscore() |> Naming.humanize() |> Inflex.singularize()
singular =
resource.title() |> Inflex.underscore() |> Naming.humanize() |> Inflex.singularize()

%{
title: resource.title(),
Expand Down

0 comments on commit 836de32

Please sign in to comment.