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:
parent
85ad518d8d
commit
75e6b7a801
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue