Fix rubocop nits
This commit is contained in:
parent
6e8f8bcc67
commit
f95e11cffc
|
@ -4,13 +4,13 @@ require "cgi"
|
||||||
|
|
||||||
module SocialHelper::TwitterMethods
|
module SocialHelper::TwitterMethods
|
||||||
include MarkdownHelper
|
include MarkdownHelper
|
||||||
|
|
||||||
def prepare_tweet(answer, post_tag = nil, omit_url = false)
|
def prepare_tweet(answer, post_tag = nil, omit_url = false)
|
||||||
question_content = twitter_markdown answer.question.content.gsub(/@(\w+)/, '\1')
|
question_content = twitter_markdown answer.question.content.gsub(/@(\w+)/, '\1')
|
||||||
original_question_length = question_content.length
|
original_question_length = question_content.length
|
||||||
answer_content = twitter_markdown answer.content
|
answer_content = twitter_markdown answer.content
|
||||||
original_answer_length = answer_content.length
|
original_answer_length = answer_content.length
|
||||||
|
|
||||||
unless omit_url
|
unless omit_url
|
||||||
answer_url = answer_url(
|
answer_url = answer_url(
|
||||||
id: answer.id,
|
id: answer.id,
|
||||||
|
|
Loading…
Reference in New Issue