1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/lib/devise/path_checker.rb
2010-06-13 12:40:40 +02:00

13 lines
261 B
Ruby

module Devise
class PathChecker
include Rails.application.routes.url_helpers
def initialize(env, scope)
@env, @scope = env, scope
end
def signing_out?
@env["PATH_INFO"] == send("destroy_#{@scope}_session_path")
end
end
end