From 12710c0e5336f111d3ad8de47ee64dee0da6c2d7 Mon Sep 17 00:00:00 2001 From: Mark Burns Date: Wed, 3 Jul 2024 11:09:26 +0100 Subject: [PATCH] use klass suffix --- lib/interactify/with_options.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interactify/with_options.rb b/lib/interactify/with_options.rb index 5b677f7..87223c8 100644 --- a/lib/interactify/with_options.rb +++ b/lib/interactify/with_options.rb @@ -20,7 +20,7 @@ def setup # define aliases when the generate class name differs. # i.e. when options are passed - unless defined?(:Job) + if this.klass_suffix.present? const_set("Job", const_get(:"Job#{this.klass_suffix}")) const_set("Async", const_get(:"Async#{this.klass_suffix}")) end