-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from woylie/default-limit
add default limit option
- Loading branch information
Showing
7 changed files
with
128 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[ | ||
{"lib/flop/schema.ex:69:no_return Function filterable/1 has no local return."}, | ||
{"lib/flop/schema.ex:78:no_return Function max_limit/1 has no local return."}, | ||
{"lib/flop/schema.ex:87:no_return Function sortable/1 has no local return."} | ||
{"lib/flop/schema.ex:73:no_return Function filterable/1 has no local return."}, | ||
{"lib/flop/schema.ex:82:no_return Function sortable/1 has no local return."}, | ||
{"lib/flop/schema.ex:91:no_return Function default_limit/1 has no local return."}, | ||
{"lib/flop/schema.ex:100:no_return Function max_limit/1 has no local return."} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
defmodule Fruit do | ||
@moduledoc """ | ||
Defines an Ecto schema for testing. | ||
""" | ||
use Ecto.Schema | ||
|
||
@derive {Flop.Schema, | ||
filterable: [:name, :species], | ||
sortable: [:name, :age, :species], | ||
default_limit: 50} | ||
|
||
embedded_schema do | ||
field :name, :string | ||
field :age, :integer | ||
field :species, :string | ||
field :social_security_number, :string | ||
end | ||
end |