From 61e8c6f0fb02baf4fb7f44db32360a7e22d9a9a4 Mon Sep 17 00:00:00 2001 From: texpert Date: Thu, 25 Jul 2024 18:53:33 +0300 Subject: [PATCH 1/5] Fix "Deprecate .reorder(nil) with .first / .first! taking non-deterministic result" message - see https://github.com/rails/rails/pull/36889 --- app/models/camaleon_cms/post_default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/camaleon_cms/post_default.rb b/app/models/camaleon_cms/post_default.rb index 89e877b5..44536119 100644 --- a/app/models/camaleon_cms/post_default.rb +++ b/app/models/camaleon_cms/post_default.rb @@ -42,7 +42,7 @@ def self.find_by_slug(slug) res = where("#{CamaleonCms::Post.table_name}.slug = ? OR #{CamaleonCms::Post.table_name}.slug LIKE ? ", slug, "%-->#{slug}