Skip to content

Commit bf1dd20

Browse files
committed
Fix spelling mistakes in guides
1 parent 261afb3 commit bf1dd20

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

guides/about/what-is-backpex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Backpex is built on top of Phoenix LiveView and provides a rich set of features
66

77
Whether you want to quickly scaffold CRUD views for your existing data or build a full-fledged administration panel, Backpex has you covered.
88

9-
TODO: add screenshots of key features here
9+

guides/authorization/live-resource-authorization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You are able to define authorization rules for your resources. The authorization
44

55
## Configuration
66

7-
To define authorization rules for a resource, you need to implement the [`can/3`](Backpex.LiveResource.html#c:can?/3) callback in the resource configuration file.
7+
To define authorization rules for a resource, you need to implement the [`can?/3`](Backpex.LiveResource.html#c:can?/3) callback in the resource configuration file.
88

99
```elixir
1010
# in your resource configuration file
@@ -22,14 +22,14 @@ def can?(assigns, :show, item) do
2222
user = assigns.current_user
2323

2424
item.user_id == user.id
25-
end
25+
end
2626

2727
def can?(assigns, action, item), do: true
2828
```
2929

3030
The example above will deny access to the `show` action if the `user_id` of the item does not match the `id` of the current user.
3131

32-
You can also use [`can/3`](Backpex.LiveResource.html#c:can?/3) to restrict access to item or resource actions.
32+
You can also use [`can?/3`](Backpex.LiveResource.html#c:can?/3) to restrict access to item or resource actions.
3333

3434
```elixir
3535
# in your resource configuration file

guides/fields/custom-alias.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Backpex automatically generates aliases for queries in your fields. However, if
66

77
To use a custom alias, define the `custom_alias` key in your field configuration. The value of the `custom_alias` key must be a unique atom that is not already in use by another field.
88

9-
109
```elixir
1110
@impl Backpex.LiveResource
1211
def fields do

0 commit comments

Comments
 (0)