Module: Layered::Ui::AuthenticationHelper
- Defined in:
- app/helpers/layered/ui/authentication_helper.rb
Instance Method Summary collapse
Instance Method Details
#l_ui_current_user ⇒ Object
8 9 10 11 |
# File 'app/helpers/layered/ui/authentication_helper.rb', line 8 def l_ui_current_user method = Layered::Ui.current_user_method send(method) if respond_to?(method, true) end |
#l_ui_devise_installed? ⇒ Boolean
4 5 6 |
# File 'app/helpers/layered/ui/authentication_helper.rb', line 4 def l_ui_devise_installed? defined?(Devise) end |
#l_ui_user_signed_in? ⇒ Boolean
13 14 15 |
# File 'app/helpers/layered/ui/authentication_helper.rb', line 13 def l_ui_user_signed_in? l_ui_current_user.present? end |