Skip to content

Commit

Permalink
swap :none for []
Browse files Browse the repository at this point in the history
  • Loading branch information
jprosevear committed Nov 17, 2024
1 parent 940af24 commit cccc4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/activity_notification/rails/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cccc4d7

Please sign in to comment.