From 7c252750c9ddd477070d40cc3f8b9c03ea6766cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 22 Jun 2019 22:00:01 +0200 Subject: [PATCH] Remove duplicated call to index customization The statement executed the method twice if the `present?` condition was true. If the condition was false, it executed it once anyway. It's probably a typo and originally we probably meant we wanted to execute the method if the method existed. --- app/controllers/concerns/commentable_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/commentable_actions.rb b/app/controllers/concerns/commentable_actions.rb index 2c6d1da81..bb610d4a6 100644 --- a/app/controllers/concerns/commentable_actions.rb +++ b/app/controllers/concerns/commentable_actions.rb @@ -16,7 +16,7 @@ module CommentableActions @resources = @resources.page(params[:page]).send("sort_by_#{@current_order}") - index_customization if index_customization.present? + index_customization @tag_cloud = tag_cloud @banners = Banner.in_section(section(resource_model.name)).with_active