DEV: more send -> public_send changes

This is a work in progress commit for more send to public_send conversions

Also adds some comments for cases where we need to keep send
This commit is contained in:
Sam Saffron
2019-05-07 11:57:55 +10:00
parent 61cc0f8c5f
commit cac80cdc3b
12 changed files with 16 additions and 10 deletions

View File

@ -248,7 +248,7 @@ class ListController < ApplicationController
def top(options = nil)
options ||= {}
period = ListController.best_period_for(current_user.try(:previous_visit_at), options[:category])
send("top_#{period}", options)
public_send("top_#{period}", options)
end
def category_top