Browse Source

FIX code review

tags/v3.0.3^2
jasder 5 years ago
parent
commit
c67686bdf5
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      app/controllers/projects_controller.rb
  2. +0
    -1
      config/routes.rb

+ 1
- 1
app/controllers/projects_controller.rb View File

@@ -167,7 +167,7 @@ class ProjectsController < ApplicationController
end

def recommend
@projects = Project.recommend.includes(:repository, :project_category, :owner).limit(5)
@projects = Project.recommend.includes(:repository, :project_category, :owner).order(id: :desc).limit(5)
end

def about


+ 0
- 1
config/routes.rb View File

@@ -392,7 +392,6 @@ Rails.application.routes.draw do
get :files
get :detail
get :archive
get :top_counts
get :entries
match :sub_entries, :via => [:get, :put]
get :commits


Loading…
Cancel
Save