Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Fix @SPEC for Repo.insert_all/3 (#56)
Browse files Browse the repository at this point in the history
* Fix @SPEC for Repo.insert_all/3

Reflects the fix to Ecto made here: elixir-ecto/ecto#2597

* Use correct argument name
  • Loading branch information
moxley authored and coburncoburn committed Aug 2, 2018
1 parent b6bfcf4 commit d602209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relixir/plug/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ defmodule NewRelixir.Plug.Repo do
end


@spec insert_all(schema_or_source :: binary | {binary, Ecto.Schema.t} | Ecto.Schema.t,
@spec insert_all(schema_or_source :: binary | {binary, module} | module,
entries :: [map | Keyword.t], opts :: Keyword.t) :: {integer, nil | [term]} | no_return
def insert_all(schema_or_source, entries, opts \\ []) do
instrument_db(:insert_all, schema_or_source, opts, fn() ->
Expand Down

0 comments on commit d602209

Please sign in to comment.