From e1055cc91240653ba37cb11dfaa4c767bab43510 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 7 May 2021 17:45:07 -0300 Subject: [PATCH] necesitamos el locale para poder marcar el idioma actual --- app/controllers/posts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 524335a5..4acf7656 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -16,7 +16,7 @@ class PostsController < ApplicationController authorize Post @site = find_site - @q = params[:q] + @locale = locale dictionary = IndexedPost.to_dictionary(locale: locale) # XXX: Cada vez que cambiamos un Post tocamos el sitio con lo que es