Don't include `Rails.application.routes.url_helpers` in `SocialHelper::`

It badly trips up things
This commit is contained in:
Andreas Nedbal 2021-12-26 22:40:27 +01:00
parent 7be52bb7f2
commit 08a0f2e1ca
2 changed files with 0 additions and 3 deletions

View File

@ -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']

View File

@ -1,7 +1,6 @@
require 'cgi'
module SocialHelper::TwitterMethods
include Rails.application.routes.url_helpers
include MarkdownHelper
def prepare_tweet(answer)