Sha256: bcfa0c4d2ae4337cd509a7dcf407da991bfa3f587bb124979b68ba4706b20cca
Contents?: true
Size: 376 Bytes
Versions: 17
Compression:
Stored size: 376 Bytes
Contents
module Controller module RedirectBackConcern extend ActiveSupport::Concern def store_location session[:original_location] = request.url if request.get? end def redirect_back_or(url) redirect_to(session[:original_location] || url) clear_return_to end def clear_return_to session.delete(:original_location) end end end
Version data entries
17 entries across 17 versions & 1 rubygems