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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user