mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user