remove post view counts, add search counts

This commit is contained in:
r888888888
2015-07-27 17:21:17 -07:00
parent fdc62b0e07
commit f87c71cf23
14 changed files with 93 additions and 170 deletions

View File

@@ -8,10 +8,9 @@ module Explore
respond_with(@posts)
end
def popular_view
@post_set = PostSets::PopularView.new(params[:date], params[:scale])
@posts = @post_set.posts
respond_with(@posts)
def searches
@date = params[:date] ? Date.parse(params[:date]) : Date.today
@search_service = PopularSearchService.new(@date, params[:scale] || "day")
end
def intro