fixup! Agregar los helpers de Devise también

This commit is contained in:
f 2021-08-02 18:31:17 -03:00
parent 75e6b7a801
commit 841279f6cf
2 changed files with 2 additions and 4 deletions

View file

@ -71,9 +71,7 @@ class ApplicationController < ActionController::Base
end
# Necesario para los breadcrumbs.
[Loaf::ViewExtensions, Devise::Controllers::UrlHelpers].each do |helper_module|
ActionView::Base.include helper_module unless ActionView::Base.included_modules.include? helper_module
end
ActionView::Base.include Loaf::ViewExtensions unless ActionView::Base.included_modules.include? Loaf::ViewExtensions
breadcrumb current_usuarie.email, main_app.edit_usuarie_registration_path
breadcrumb 'sites.index', main_app.sites_path, match: :exact

View file

@ -12,7 +12,7 @@
- else
%span.line-clamp-1= link_to crumb.name, crumb.url
- if current_usuarie
- if @current_usuarie || current_usuarie
%ul.navbar-nav
- if @site&.tienda?
%li.nav-item