Skip to content

Commit

Permalink
Add treat_reserved_as_conflict option to initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
timsjpark authored and parndt committed Nov 17, 2017
1 parent 7fddca3 commit 68cbd3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/friendly_id/initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

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

# ## Friendly Finders
#
Expand Down

0 comments on commit 68cbd3d

Please sign in to comment.