diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-04 22:02:19 +0300 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-04 22:02:19 +0300 |
commit | 3f1bd844f1f645d3d97caec4aa2504fde63b31fd (patch) | |
tree | 655d6aa9745d17dda3d70c4989927f0ff639e669 /app/controllers/explore | |
parent | 74a4ff614335ce82d92a7501227898053f806b6e (diff) |
Implement changes from MR feedback
Diffstat (limited to 'app/controllers/explore')
-rw-r--r-- | app/controllers/explore/projects_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/explore/projects_controller.rb b/app/controllers/explore/projects_controller.rb index a5aeaed66c5..2689bf4f1ec 100644 --- a/app/controllers/explore/projects_controller.rb +++ b/app/controllers/explore/projects_controller.rb @@ -11,14 +11,14 @@ class Explore::ProjectsController < Explore::ApplicationController end def trending - @trending_projects = TrendingProjectsFinder.new.execute(current_user) - @trending_projects = @trending_projects.non_archived - @trending_projects = @trending_projects.page(params[:page]).per(PER_PAGE) + @projects = TrendingProjectsFinder.new.execute(current_user) + @projects = @projects.non_archived + @projects = @projects.page(params[:page]).per(PER_PAGE) end def starred - @starred_projects = ProjectsFinder.new.execute(current_user) - @starred_projects = @starred_projects.reorder('star_count DESC') - @starred_projects = @starred_projects.page(params[:page]).per(PER_PAGE) + @projects = ProjectsFinder.new.execute(current_user) + @projects = @projects.reorder('star_count DESC') + @projects = @projects.page(params[:page]).per(PER_PAGE) end end |