Commit cff3d5b725f53d96738597f15f0b15869e21416b
1 parent
08b5be5b
Exists in
master
and in
29 other branches
[comments-refactor-review] Removing unnecessary code
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
app/controllers/public/comment_controller.rb
... | ... | @@ -117,9 +117,7 @@ class CommentController < ApplicationController |
117 | 117 | return |
118 | 118 | end |
119 | 119 | |
120 | - display_link = params[:reply_of_id].present? && !params[:reply_of_id].empty? | |
121 | - | |
122 | - render :partial => "comment_form", :locals => {:comment => @comment, :display_link => display_link, :edition_mode => true, :show_form => true} | |
120 | + render :partial => "comment_form", :locals => {:comment => @comment, :display_link => params[:reply_of_id].present?, :edition_mode => true, :show_form => true} | |
123 | 121 | end |
124 | 122 | |
125 | 123 | def update | ... | ... |