Skip to content

Commit

Permalink
DOC: An easier mounting method with devise (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetaydogduu committed Mar 30, 2020
1 parent 5775187 commit fcf27cd
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit fcf27cd

Please sign in to comment.