mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
add #anybody_signed_in? to helpers
This commit is contained in:
parent
5c9fe5e769
commit
cd78a26f88
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ module Devise
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
helper_method :warden, :signed_in?, :devise_controller?,
|
||||
helper_method :warden, :signed_in?, :devise_controller?, :anybody_signed_in?,
|
||||
*Devise.mappings.keys.map { |m| [:"current_#{m}", :"#{m}_signed_in?", :"#{m}_session"] }.flatten
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue