Include model_session helpers in view, closes #227
This commit is contained in:
parent
708fe78d86
commit
d750b48879
|
@ -6,7 +6,7 @@ module Devise
|
||||||
|
|
||||||
included do
|
included do
|
||||||
helper_method :warden, :signed_in?, :devise_controller?,
|
helper_method :warden, :signed_in?, :devise_controller?,
|
||||||
*Devise.mappings.keys.map { |m| [:"current_#{m}", :"#{m}_signed_in?"] }.flatten
|
*Devise.mappings.keys.map { |m| [:"current_#{m}", :"#{m}_signed_in?", :"#{m}_session"] }.flatten
|
||||||
end
|
end
|
||||||
|
|
||||||
# The main accessor for the warden proxy instance
|
# The main accessor for the warden proxy instance
|
||||||
|
|
Loading…
Reference in New Issue