Sha256: ea0cd9e78ee6ecf8113c64283247fe52af4dc3e786d54e39c72bea94a47b6c09
Contents?: true
Size: 678 Bytes
Versions: 57
Compression:
Stored size: 678 Bytes
Contents
module Cmor module UserArea module Controller module RedirectBackConcern extend ActiveSupport::Concern private def store_location self.original_location = request.url if request.get? end def redirect_back_or(url) redirect_to(original_location || url) clear_original_location end def clear_original_location session.delete(:original_location) end def original_location session[:original_location] end def original_location=(location) session[:original_location] = location end end end end end
Version data entries
57 entries across 57 versions & 1 rubygems