module TrailingSlashSeo::ClassMethods

Public Instance Methods

process_with_redirect(request, response) click to toggle source
# File lib/trailing_slash_seo.rb, line 10
def process_with_redirect(request, response)
  return response.redirect(self.url, 301) if !self.virtual? && request.path != self.url
  process_without_redirect(request, response)
end