5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 21:46:22 +00:00

siempre mandar un array en data-keys

closes #887
closes #886
closes #885
closes #884
closes #877
closes #876
closes #871
closes #867
closes #865
This commit is contained in:
f 2021-03-27 17:18:09 -03:00
parent 0c491f88e1
commit 072662cab8

View file

@ -167,6 +167,6 @@ class PostsController < ApplicationController
# Instruye al editor a olvidarse el contenido del artículo. Usar
# cuando hayamos guardado la información correctamente.
def forget_content
flash[:js] = { target: 'editor', action: 'forget-content', keys: params[:storage_keys].to_json }
flash[:js] = { target: 'editor', action: 'forget-content', keys: (params[:storage_keys] || []).to_json }
end
end