Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An easier mounting method with devise #112

Merged
merged 3 commits into from Mar 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -100,6 +100,16 @@ The reason this doesn't happen in rails apps is because ActiveSupport has a monk
end
```

### Mount using devise (method 2)
Change :admin_user symbol with your devise user, example :user.
In -> lambda block change admin? method with your authorization method
Or simply define a admin? method in you user model.
```
authenticate :admin_user, ->(u) { u.admin? } do
mount Logster::Web, at: "/logs"
end
```

Out of the box, logster will use the default redis connection, to customise, in `config/application.rb`

```
Expand Down