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