Sha256: 34e3b0454cb52b8f00348feaf67f1979a017dd036a4d47d975679f8aa67a58f5
Contents?: true
Size: 396 Bytes
Versions: 25
Compression:
Stored size: 396 Bytes
Contents
module SiteClientHelper # Extract {Site::Client} id form Devise's redirect_to def redirect_to_site_client_id uri = URI.parse session["user_return_to"] Rack::Utils.parse_query(uri.query)["client_id"] rescue end def redirect_to_site_client? redirect_to_site_client_id.present? end def redirecting_site_client Site::Client.find redirect_to_site_client_id end end
Version data entries
25 entries across 25 versions & 2 rubygems