Skip to content

Commit

Permalink
Fix a typo in friendly_id.rb (#820)
Browse files Browse the repository at this point in the history
The correct path is `config/initializers/cancancan.rb`
  • Loading branch information
clement-avenel committed Mar 5, 2023
1 parent 7c99c59 commit 7fe9179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/friendly_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ If you are using [FriendlyId](https://github.com/norman/friendly_id) you will pr

You do not have to write `find_by :slug` or something like that, that is always error prone.

You just need to create a `config/initizializers/cancancan.rb` file with:
You just need to create a `config/initializers/cancancan.rb` file with:

```ruby
if defined?(CanCanCan)
Expand Down

0 comments on commit 7fe9179

Please sign in to comment.