5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 13:51:41 +00:00

Agregar los helpers de Devise también

Para que tengamos `current_usuarie` dentro de las vistas de Blazer.
This commit is contained in:
f 2021-08-02 18:25:42 -03:00
parent 85ad518d8d
commit 75e6b7a801

View file

@ -71,7 +71,9 @@ class ApplicationController < ActionController::Base
end end
# Necesario para los breadcrumbs. # Necesario para los breadcrumbs.
ActionView::Base.include Loaf::ViewExtensions unless ActionView::Base.included_modules.include? Loaf::ViewExtensions [Loaf::ViewExtensions, Devise::Controllers::UrlHelpers].each do |helper_module|
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