Sha256: 70a736eea39485a8f80318c80f02be3572d70ae6af4dc1462a6b47df0cc8a3db
Contents?: true
Size: 430 Bytes
Versions: 39
Compression:
Stored size: 430 Bytes
Contents
module Devise class PathChecker include Rails.application.routes.url_helpers def self.default_url_options(*args) ApplicationController.default_url_options(*args) end def initialize(env, scope) @current_path = "/#{env["SCRIPT_NAME"]}/#{env["PATH_INFO"]}".squeeze("/") @scope = scope end def signing_out? @current_path == send("destroy_#{@scope}_session_path") end end end
Version data entries
39 entries across 39 versions & 8 rubygems