Commit cff3d5b725f53d96738597f15f0b15869e21416b

Authored by Rodrigo Souto
1 parent 08b5be5b

[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,9 +117,7 @@ class CommentController < ApplicationController
117 return 117 return
118 end 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 end 121 end
124 122
125 def update 123 def update