From 382ee50f132f71d25f3b7d863c58128b6726eb7f Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 20 Jul 2020 13:51:11 +1000 Subject: [PATCH] Cast watch_category array to integer --- lib/custom_wizard/action.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/custom_wizard/action.rb b/lib/custom_wizard/action.rb index fe8462ed..ec54e110 100644 --- a/lib/custom_wizard/action.rb +++ b/lib/custom_wizard/action.rb @@ -149,9 +149,7 @@ class CustomWizard::Action user: user ).perform - unless watched_categories.is_a?(Array) - watched_categories = [watched_categories] - end + watched_categories = [*watched_categories].map(&:to_i) notification_level = action['notification_level']