Skip to content

Commit

Permalink
Update README and hide modules in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
drewolson committed May 19, 2016
1 parent 769cbf8 commit 2312fc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ end
def index(conn, params) do
page = MyApp.Person
|> where([p], p.age > 30)
|> order_by([p], desc: p.age)
|> order_by(desc: :age)
|> preload(:friends)
|> MyApp.Repo.paginate(params)

Expand All @@ -50,7 +50,7 @@ end
```elixir
page = MyApp.Person
|> where([p], p.age > 30)
|> order_by([p], desc: p.age)
|> order_by(desc: :age)
|> preload(:friends)
|> MyApp.Repo.paginate(page: 2, page_size: 5)
```
Expand Down
2 changes: 2 additions & 0 deletions lib/scrivener/paginater/atom.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defimpl Scrivener.Paginater, for: Atom do
@moduledoc false

@spec paginate(atom, Scrivener.Config.t) :: Scrivener.Page.t
def paginate(atom, config) do
atom
Expand Down
2 changes: 2 additions & 0 deletions lib/scrivener/paginater/ecto/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ defimpl Scrivener.Paginater, for: Ecto.Query do

alias Scrivener.{Config, Page}

@moduledoc false

@spec paginate(Ecto.Query.t, Scrivener.Config.t) :: Scrivener.Page.t
def paginate(query, %Config{page_size: page_size, page_number: page_number, module: repo}) do
total_entries = total_entries(query, repo)
Expand Down

0 comments on commit 2312fc2

Please sign in to comment.