From ba9ead855e8ba4235dd50768eae0203d6ea3c8ce Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 28 Aug 2024 10:11:08 +0200 Subject: [PATCH] DEV: Fix autoloading (#322) A follow-up to e23c31195b097223f030800614b55d09bf54d086 Fixes errors like: ``` NameError: uninitialized constant DiscourseDataExplorer::ValidationError # ./plugins/discourse-data-explorer/spec/lib/parameter_spec.rb:15:in `block (3 levels) in
' ``` --- lib/discourse_data_explorer/data_explorer.rb | 3 --- lib/discourse_data_explorer/validation_error.rb | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 lib/discourse_data_explorer/validation_error.rb diff --git a/lib/discourse_data_explorer/data_explorer.rb b/lib/discourse_data_explorer/data_explorer.rb index fd94ea8..f9843a8 100644 --- a/lib/discourse_data_explorer/data_explorer.rb +++ b/lib/discourse_data_explorer/data_explorer.rb @@ -1,9 +1,6 @@ # frozen_string_literal: true module ::DiscourseDataExplorer - class ValidationError < StandardError - end - module DataExplorer # Used for ftype calls, see https://www.rubydoc.info/gems/pg/0.17.1/PG%2FResult:ftype # and /usr/include/postgresql/server/catalog/pg_type_d.h diff --git a/lib/discourse_data_explorer/validation_error.rb b/lib/discourse_data_explorer/validation_error.rb new file mode 100644 index 0000000..ba15df8 --- /dev/null +++ b/lib/discourse_data_explorer/validation_error.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +module ::DiscourseDataExplorer + class ValidationError < StandardError + end +end