From 08a0f2e1ca888c6607847151d6a69f9d704c6c95 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Dec 2021 22:40:27 +0100 Subject: [PATCH] Don't include `Rails.application.routes.url_helpers` in `SocialHelper::` It badly trips up things --- app/helpers/social_helper/tumblr_methods.rb | 2 -- app/helpers/social_helper/twitter_methods.rb | 1 - 2 files changed, 3 deletions(-) diff --git a/app/helpers/social_helper/tumblr_methods.rb b/app/helpers/social_helper/tumblr_methods.rb index b9c3cfc3..0a16f258 100644 --- a/app/helpers/social_helper/tumblr_methods.rb +++ b/app/helpers/social_helper/tumblr_methods.rb @@ -1,8 +1,6 @@ require 'cgi' module SocialHelper::TumblrMethods - include Rails.application.routes.url_helpers - def tumblr_title(answer) asker = if answer.question.author_is_anonymous? APP_CONFIG['anonymous_name'] diff --git a/app/helpers/social_helper/twitter_methods.rb b/app/helpers/social_helper/twitter_methods.rb index 04579e28..03a473e8 100644 --- a/app/helpers/social_helper/twitter_methods.rb +++ b/app/helpers/social_helper/twitter_methods.rb @@ -1,7 +1,6 @@ require 'cgi' module SocialHelper::TwitterMethods - include Rails.application.routes.url_helpers include MarkdownHelper def prepare_tweet(answer)