1
0
Fork 0
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:
Bogdan 2016-03-23 20:57:56 +02:00 committed by bogdanvlviv
parent 69bee06cee
commit aa25e2080e
2 changed files with 4 additions and 6 deletions

View file

@ -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

View file

@ -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