mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 17:36:23 +00:00
fix: evitar generar error de traducción al perder acceso a un sitio
This commit is contained in:
parent
c9bb3defff
commit
d3e09a2776
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ class PostsController < ApplicationController
|
|||
# Las URLs siempre llevan el idioma actual o el de le usuarie
|
||||
def default_url_options
|
||||
{ locale: locale }
|
||||
rescue SiteNotFound
|
||||
{}
|
||||
end
|
||||
|
||||
# @todo Mover a tu propio scope
|
||||
|
|
Loading…
Reference in a new issue