5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 12:21:43 +00:00

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 end
# Necesario para los breadcrumbs. # Necesario para los breadcrumbs.
[Loaf::ViewExtensions, Devise::Controllers::UrlHelpers].each do |helper_module| ActionView::Base.include Loaf::ViewExtensions unless ActionView::Base.included_modules.include? Loaf::ViewExtensions
ActionView::Base.include helper_module unless ActionView::Base.included_modules.include? helper_module
end
breadcrumb current_usuarie.email, main_app.edit_usuarie_registration_path breadcrumb current_usuarie.email, main_app.edit_usuarie_registration_path
breadcrumb 'sites.index', main_app.sites_path, match: :exact breadcrumb 'sites.index', main_app.sites_path, match: :exact

View file

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