Defined FrontendMethods.

This commit is contained in:
邱博亞 2022-12-07 11:10:10 +08:00
parent 567073ec3f
commit 103ea0311b
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class EPapersController < ApplicationController
FrontendMethods = ["papers", "topics"]
def index
topics = EPaperTopic.filter_by_categories.filter_by_tags.desc(:period)
data = topics.collect do |topic|