You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gem adds a locale column to the friendly_id_slugs table with null: :false. This way it enforces slugs being translated project wide.
If one wants a translated slug with history on model A but a non-translated slug with history on model B the current behavior is the current locale is being saved for the non-translated slug on model B too!
This is due to the implementation of the slug_decorator only taking the existence of the locale column into account.
The current implementation of the friendly_id-mobility gem does not allow such a hybrid usage of the friendly_id gem but it should!
Suggestion:
The usage of the :mobility plugin should be checked in the slug_decorator too!
The not null constraint should be loosened up to allow locale being null for non-translated slugs.
What do you think?
The text was updated successfully, but these errors were encountered:
This gem adds a
locale
column to thefriendly_id_slugs
table withnull: :false
. This way it enforces slugs being translated project wide.If one wants a translated slug with history on model A but a non-translated slug with history on model B the current behavior is the current locale is being saved for the non-translated slug on model B too!
This is due to the implementation of the slug_decorator only taking the existence of the
locale
column into account.The current implementation of the friendly_id-mobility gem does not allow such a hybrid usage of the friendly_id gem but it should!
Suggestion:
not null
constraint should be loosened up to allowlocale
being null for non-translated slugs.What do you think?
The text was updated successfully, but these errors were encountered: