Defined FrontendMethods.
This commit is contained in:
parent
567073ec3f
commit
103ea0311b
|
@ -1,5 +1,5 @@
|
||||||
class EPapersController < ApplicationController
|
class EPapersController < ApplicationController
|
||||||
|
FrontendMethods = ["papers", "topics"]
|
||||||
def index
|
def index
|
||||||
topics = EPaperTopic.filter_by_categories.filter_by_tags.desc(:period)
|
topics = EPaperTopic.filter_by_categories.filter_by_tags.desc(:period)
|
||||||
data = topics.collect do |topic|
|
data = topics.collect do |topic|
|
||||||
|
|
Loading…
Reference in New Issue