From 848a0dc0ca448a117becedde833d3b13273b8bcf Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 9 Nov 2020 18:48:55 +1100 Subject: [PATCH] Custom field list is already cached Attempt to fix failing CI test that's working locally --- extensions/custom_field/preloader.rb | 2 +- extensions/custom_field/serializer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/custom_field/preloader.rb b/extensions/custom_field/preloader.rb index 732dccf9..eae22365 100644 --- a/extensions/custom_field/preloader.rb +++ b/extensions/custom_field/preloader.rb @@ -12,6 +12,6 @@ module CustomWizardCustomFieldPreloader end def cw_fields - @cw_fields ||= CustomWizard::CustomField.list_by(:klass, @cw_klass) + CustomWizard::CustomField.list_by(:klass, @cw_klass) end end \ No newline at end of file diff --git a/extensions/custom_field/serializer.rb b/extensions/custom_field/serializer.rb index 31576c0a..994ba7de 100644 --- a/extensions/custom_field/serializer.rb +++ b/extensions/custom_field/serializer.rb @@ -19,7 +19,7 @@ module CustomWizardCustomFieldSerializer private def cw_fields - @cw_fields ||= CustomWizard::CustomField.list_by(:serializers, @cw_klass) + CustomWizard::CustomField.list_by(:serializers, @cw_klass) end def get_cw_class