Skip to content

Commit

Permalink
Fix method name
Browse files Browse the repository at this point in the history
The method seems to have been renamed from `getRegenerateSlugOnUpdate()` to `shouldRegenerateSlugOnUpdate()`.
  • Loading branch information
peschee authored Jan 29, 2020
1 parent a076c4a commit 39e2ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sluggable.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Sluggable generates slugs (uniqueness is not guaranteed) for an entity.

Will automatically generate on update/persist (you can disable the on update generation by overriding `getRegenerateSlugOnUpdate()` to return `false`.
Will automatically generate on update/persist (you can disable the on update generation by overriding `shouldRegenerateSlugOnUpdate()` to return `false`.

You can also override the slug delimiter from the default `-` by overriding `getSlugDelimiter()` method.

Expand Down

0 comments on commit 39e2ae4

Please sign in to comment.