mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
removed deprecated private method Devise::Controllers::Helpers#expire_session_data_after_sign_in!
This commit is contained in:
parent
69bee06cee
commit
aa25e2080e
2 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,9 @@
|
||||||
### Unreleased
|
### Unreleased
|
||||||
|
|
||||||
|
* deprecations
|
||||||
|
* removed deprecated private method Devise::Controllers::Helpers#expire_session_data_after_sign_in!
|
||||||
|
(by @bogdanvlviv)
|
||||||
|
|
||||||
### 4.0.0.rc2 - 2016-03-09
|
### 4.0.0.rc2 - 2016-03-09
|
||||||
|
|
||||||
* enhancements
|
* enhancements
|
||||||
|
|
|
@ -271,12 +271,6 @@ module Devise
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def expire_session_data_after_sign_in!
|
|
||||||
ActiveSupport::Deprecation.warn "expire_session_data_after_sign_in! is deprecated " \
|
|
||||||
"in favor of expire_data_after_sign_in!"
|
|
||||||
expire_data_after_sign_in!
|
|
||||||
end
|
|
||||||
|
|
||||||
def expire_data_after_sign_out!
|
def expire_data_after_sign_out!
|
||||||
Devise.mappings.each { |_,m| instance_variable_set("@current_#{m.name}", nil) }
|
Devise.mappings.each { |_,m| instance_variable_set("@current_#{m.name}", nil) }
|
||||||
super
|
super
|
||||||
|
|
Loading…
Reference in a new issue