Commit 4531732cd6b2ec1a2c558f775a7b796b929b3845
1 parent
171bb6e3
Exists in
master
and in
29 other branches
Small refactoring of comment_actions method at comment_helper
(ActionItem2786)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/comment_helper.rb
... | ... | @@ -25,7 +25,7 @@ module CommentHelper |
25 | 25 | def comment_actions(comment) |
26 | 26 | url = url_for(:profile => profile.identifier, :controller => :comment, :action => :check_actions, :id => comment.id) |
27 | 27 | links = links_for_comment_actions(comment) |
28 | - links_submenu = links.select{|link| link[:action_bar].nil? || !link[:action_bar]} | |
28 | + links_submenu = links.select{|link| link[:action_bar].blank?} | |
29 | 29 | links_action_bar = links - links_submenu |
30 | 30 | links_submenu = links_submenu.collect {|link| link.slice(:link)} |
31 | 31 | render :partial => 'comment/comment_actions', :locals => {:links_submenu => links_submenu, :links_action_bar => links_action_bar, :url => url, :comment => comment} | ... | ... |