From 7fe91791c8d51b1a9345e310aa3733edeb121ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Avenel?= Date: Sun, 5 Mar 2023 15:15:13 +0100 Subject: [PATCH] Fix a typo in friendly_id.rb (#820) The correct path is `config/initializers/cancancan.rb` --- docs/friendly_id.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/friendly_id.md b/docs/friendly_id.md index 8f2f92a3..b20c03eb 100644 --- a/docs/friendly_id.md +++ b/docs/friendly_id.md @@ -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)