ensures Rails 4 compatibility for match routes