Sha256: 6477546896fc89f6078717a0518f6bb59c5e4a25667cf0c283c43b8ce4c1fa9c
Contents?: true
Size: 421 Bytes
Versions: 24
Compression:
Stored size: 421 Bytes
Contents
module Agilibox::BackUrlConcern extend ActiveSupport::Concern private def default_back_url end def back_url url = [ params[:back_url], request.referer, default_back_url, main_app.try(:root_path), "/", ].find(&:present?) uri = URI.parse(url) uri.host = nil uri.port = nil uri.scheme = nil uri.user = nil uri.password = nil uri.to_s end end
Version data entries
24 entries across 24 versions & 1 rubygems