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 issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When using uuids as id for the
friendly_id_slugs
table the history can be wrongly considered out of date.I created the
friendly_id_slugs
table withcreate_table :friendly_id_slugs, id: :uuid
.In
history.rb
, theslugs
relationship is defined as:In order to find the current slug in
history_is_up_to_date?
, it uses:latest_history = slugs.first
ordering by id is not compatible with this when ids are uuids.
Potential solution:
Allowing configuration of the ordering key:
The text was updated successfully, but these errors were encountered: