From 1c06ae9f81346c29e40e1e8fd6bedcc27e8d7035 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 1 Jul 2017 11:45:28 -0500 Subject: [PATCH] atom feeds: fix deprecation warnings in *_path helpers. DEPRECATION WARNING: You are calling a `*_path` helper with the `only_path` option explicitly set to `false`. This option will stop working on path helpers in Rails 5. Use the corresponding `*_url` helper instead. --- app/views/comments/index.atom.builder | 2 +- app/views/forum_topics/index.atom.builder | 2 +- app/views/forum_topics/show.atom.builder | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/comments/index.atom.builder b/app/views/comments/index.atom.builder index 6729130a1..09d017868 100644 --- a/app/views/comments/index.atom.builder +++ b/app/views/comments/index.atom.builder @@ -1,4 +1,4 @@ -atom_feed(root_url: comments_path(host: Danbooru.config.hostname, only_path: false)) do |feed| +atom_feed(root_url: comments_url(host: Danbooru.config.hostname)) do |feed| title = "Comments" title += " by #{params[:search][:creator_name]}" if params.dig(:search, :creator_name).present? title += " on #{params[:search][:post_tags_match]}" if params.dig(:search, :post_tags_match).present? diff --git a/app/views/forum_topics/index.atom.builder b/app/views/forum_topics/index.atom.builder index 57ef56065..97a9c7470 100644 --- a/app/views/forum_topics/index.atom.builder +++ b/app/views/forum_topics/index.atom.builder @@ -1,4 +1,4 @@ -atom_feed(root_url: forum_topics_path(host: Danbooru.config.hostname, only_path: false)) do |feed| +atom_feed(root_url: forum_topics_url(host: Danbooru.config.hostname)) do |feed| feed.title("Forum Topics") feed.updated(@forum_topics.first.try(:updated_at)) diff --git a/app/views/forum_topics/show.atom.builder b/app/views/forum_topics/show.atom.builder index 8328e0ee9..fef903a79 100644 --- a/app/views/forum_topics/show.atom.builder +++ b/app/views/forum_topics/show.atom.builder @@ -1,4 +1,4 @@ -atom_feed(root_url: forum_topic_path(@forum_topic, host: Danbooru.config.hostname, only_path: false)) do |feed| +atom_feed(root_url: forum_topic_url(@forum_topic, host: Danbooru.config.hostname)) do |feed| feed.title(@forum_topic.title) feed.updated(@forum_topic.try(:updated_at))