lib/authenticated_system.rb
# Redirect to the URI stored by the most recent store_location call or
# to the passed default.
Redirect to the URI stored by the most recent store_location call or
to the passed default.
Redirect to the URI stored by the most recent store_location call or to the passed default .
def redirect_back_or_default(default)
      redirect_to(session[:return_to] || default)
      session[:return_to] = nil
    end
def redirect_back_or_default ( default ) redirect_to ( session [ :return_to ] || default ) session [ :return_to ] = nil end
Redirect to the URI stored by the most recent store_location call or
to the passed default.
Redirect to the URI stored by the most recent store_location call or to the passed default .
#logger.info "redirecting back or default"
default
<not_specific>