Remove unnecessary brackets on WIKI_SLUG_ID route constraints

This commit is contained in:
Douglas Barbosa Alexandre 2016-01-12 11:29:33 -02:00
parent 928c94807e
commit 364e63fa2f

View file

@ -513,7 +513,7 @@ Rails.application.routes.draw do
end
end
WIKI_SLUG_ID = { id: /[\S]+/ } unless defined? WIKI_SLUG_ID
WIKI_SLUG_ID = { id: /\S+/ } unless defined? WIKI_SLUG_ID
scope do
# Order matters to give priority to these matches