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.
This commit is contained in:
Javi Martín
2019-06-22 22:00:01 +02:00
parent 3a2818ece5
commit 7c252750c9

View File

@@ -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