mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Fix rubocop nits
This commit is contained in:
parent
6e8f8bcc67
commit
f95e11cffc
1 changed files with 2 additions and 2 deletions
|
@ -4,13 +4,13 @@ require "cgi"
|
|||
|
||||
module SocialHelper::TwitterMethods
|
||||
include MarkdownHelper
|
||||
|
||||
|
||||
def prepare_tweet(answer, post_tag = nil, omit_url = false)
|
||||
question_content = twitter_markdown answer.question.content.gsub(/@(\w+)/, '\1')
|
||||
original_question_length = question_content.length
|
||||
answer_content = twitter_markdown answer.content
|
||||
original_answer_length = answer_content.length
|
||||
|
||||
|
||||
unless omit_url
|
||||
answer_url = answer_url(
|
||||
id: answer.id,
|
||||
|
|
Loading…
Reference in a new issue