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