Skip to content

Commit e383492

Browse files
authored
Use Pundit for authorization (#720)
Authorization is the process of ensuring that users have access to the data that only they should access. It's a common flow found in many different Rails applications. Pundit is takes the approach of using regular Ruby classes and OO design which makes it pleasant to use. This recommendation comes after it's been used on many applications, including support included in Administrate. https://github.com/varvet/pundit https://administrate-demo.herokuapp.com/authorization
1 parent e03da33 commit e383492

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rails/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
- [Use blocks](/ruby/sample_2.rb#L10) when declaring date and time attributes in
5555
FactoryBot factories.
5656
- Use `touch: true` when declaring `belongs_to` relationships.
57+
- Use [Pundit][] when you need to restrict access to models and data.
58+
59+
[Pundit]: https://github.com/varvet/pundit
5760

5861
## Translations
5962

0 commit comments

Comments
 (0)