mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Do not store mappings since they can change by scope in serializers.
This commit is contained in:
parent
7ffd0900c1
commit
dbe0b48bca
2 changed files with 2 additions and 8 deletions
|
@ -9,10 +9,6 @@ module Warden::Mixins::Common
|
|||
end
|
||||
end
|
||||
|
||||
def raw_session
|
||||
request.session
|
||||
end
|
||||
|
||||
def reset_session!
|
||||
raw_session.inspect # why do I have to inspect it to get it to clear?
|
||||
raw_session.clear
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
module Devise
|
||||
module Strategies
|
||||
# Base strategy for Devise. Responsible for verifying correct scope and
|
||||
# mapping.
|
||||
# Base strategy for Devise. Responsible for verifying correct scope and mapping.
|
||||
module Base
|
||||
|
||||
# Validate strategy. By default will raise an error if no scope or an
|
||||
# invalid mapping is found.
|
||||
def valid?
|
||||
|
@ -13,7 +11,7 @@ module Devise
|
|||
# Checks if a valid scope was given for devise and find mapping based on
|
||||
# this scope.
|
||||
def mapping
|
||||
@mapping ||= Devise.mappings[scope]
|
||||
Devise.mappings[scope]
|
||||
end
|
||||
|
||||
# Store this class type.
|
||||
|
|
Loading…
Add table
Reference in a new issue