You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a small request to add an initializer option for the new feature for treating reserved words as conflicts. I think this feature should be disabled by default. Thanks!
FriendlyId.defaults do |config|
# ## Reserved Words
#
# Some words could conflict with Rails's routes when used as slugs, or are
# undesirable to allow as slugs. Edit this list as needed for your app.
config.use :reserved
config.reserved_words = %w(new edit index session login logout users admin
stylesheets assets javascripts images)
# This adds an option to to treat reserved words as conflicts rather than exceptions.
# When there is no good candidate, a UUID will be appended, matching the existing
# conflict behavior.
# config.treat_reserved_as_conflict = true
The text was updated successfully, but these errors were encountered:
Just a small request to add an initializer option for the new feature for treating reserved words as conflicts. I think this feature should be disabled by default. Thanks!
The text was updated successfully, but these errors were encountered: