module Turbolinks::Redirect::Concern

All methods that will be included in ActionController::Base.

Public Instance Methods

redirect_to( options={}, response_status={} ) click to toggle source

Override redirect_to to automatically respond with a status of :turbolinks if this request is AJAX.

Calls superclass method
# File lib/turbolinks/redirect.rb, line 24
def redirect_to( options={}, response_status={} )
  if request.xhr?
    super options, response_status.merge( :status => :turbolinks )
  else
    super
  end
end