Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
muzsuvie authored and Muzzamil890 committed Sep 9, 2024
1 parent 2bb06c4 commit 2097d9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ RakeUi.configuration do |config|
end
```

### Enabling ActiveStorage
In order to turn on/off active_storage for RakeUI gem, add configuration in initializer as follows

```rb
RakeUi.configuration do |config|
config.active_storage = false
end
```

We recommend adding guards in your route to ensure that the proper authentication is in place to ensure that users are authenticated so that if this were ever to be rendered in production, you would be covered. The best way for that is [router constraints](https://guides.rubyonrails.org/routing.html#specifying-constraints)

## Testing
Expand Down

0 comments on commit 2097d9d

Please sign in to comment.