Skip to content

Commit

Permalink
minor tweaks (publiclab#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViditChitkara authored and jywarren committed Jan 26, 2018
1 parent 9d01145 commit d466dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def render_comment_body(comment)

# replaces inline title suggestion(e.g: {New Title}) with the required link to change the title
def title_suggestion(comment)
comment.body.gsub(/\[propose:title](.*?)\[\/propose]/) do |_title_suggestion|
comment.body.gsub(/\[propose:title\](.*?)\[\/propose\]/) do |title_suggestion|
a = ActionController::Base.new
is_creator = current_user.drupal_user == Node.find(comment.nid).author
title = Regexp.last_match(1)
Expand Down

0 comments on commit d466dcb

Please sign in to comment.