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

los url helpers necesitan hashes o params

y params.to_h devuelve un hashwithindifferentaccess, lo que rompia las
urls con locale
This commit is contained in:
f 2021-10-21 13:23:35 -03:00
parent 08e0a0ca9d
commit 6349fd7b40

View file

@ -154,7 +154,7 @@ class PostsController < ApplicationController
#
# @return [Hash]
def filter_params
@filter_params ||= params.permit(:q, :category, :layout, :page).to_h.select { |_, v| v.present? }
@filter_params ||= params.permit(:q, :category, :layout, :page).to_hash.select { |_, v| v.present? }
end
def site