From 5fbd2a532a2a9f8f519f2b69fe467e795a39bbb0 Mon Sep 17 00:00:00 2001 From: Peter Berkenbosch Date: Fri, 1 Sep 2023 10:41:48 +0200 Subject: [PATCH] Monkeypatch table_name needed for ransack See https://github.com/activerecord-hackery/ransack/issues/1420 --- core/lib/solidus_core.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/lib/solidus_core.rb b/core/lib/solidus_core.rb index 3b69d6d6664..bab4b80d02d 100644 --- a/core/lib/solidus_core.rb +++ b/core/lib/solidus_core.rb @@ -1,3 +1,9 @@ # frozen_string_literal: true require 'spree_core' + +class Arel::Table + def table_name + name + end +end