Skip to content

Commit

Permalink
Fix page constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
harmdewit committed Jan 21, 2016
1 parent e3d72cb commit fec150c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
# get ':materialized_pathroot/:subpage/:id' => "pages#show", as: "third_level_page"
# get ':root/:id' => "pages#show", as: "subpage"
get '/*id' => 'pages#show', as: "page", controller: 'pages', constraints: lambda { |request|
!Rails.env.development? && !request.env['PATH_INFO'].starts_with?('/rails/')
!(Rails.env.development? && request.env['PATH_INFO'].starts_with?('/rails/'))
}

end
Expand Down

0 comments on commit fec150c

Please sign in to comment.