From cccc4d7438d617324d378993e287f6bbc331e35c Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Sun, 17 Nov 2024 17:23:40 -0500 Subject: [PATCH] swap :none for [] --- lib/activity_notification/rails/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/activity_notification/rails/routes.rb b/lib/activity_notification/rails/routes.rb index 50d7f5cd..30a0932f 100644 --- a/lib/activity_notification/rails/routes.rb +++ b/lib/activity_notification/rails/routes.rb @@ -153,7 +153,7 @@ def notify_to(*resources) if options[:with_devise].present? && options[:devise_default_routes].present? create_notification_routes options, resources_options else - self.resources target, only: :none do + self.resources target, only: [] do create_notification_routes options, resources_options end end @@ -348,7 +348,7 @@ def subscribed_by(*resources) if options[:with_devise].present? && options[:devise_default_routes].present? create_subscription_routes options, resources_options else - self.resources target, only: :none do + self.resources target, only: [] do create_subscription_routes options, resources_options end end