diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 8734964f3..26e022052 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -2,7 +2,7 @@ class ProjectsController < ApplicationController include ApplicationHelper include OperateProjectAbilityAble before_action :require_login, except: %i[index branches group_type_list] - before_action :find_project_with_id, only: %i[show branches update destroy fork_users praise_users watch_user] + before_action :find_project_with_id, only: %i[show branches update destroy fork_users praise_users watch_users] before_action :authorizate_user_can_edit_project!, only: %i[update] before_action :project_public?, only: %i[fork_users praise_users watch_user] @@ -87,7 +87,7 @@ class ProjectsController < ApplicationController @watchers = paginate(watchers) end - def parise_users + def praise_users praises = @project.praise_treads.includes(:user).distinct @praises = paginate(praises) end diff --git a/config/routes.rb b/config/routes.rb index c658f0cc1..f7f21a065 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -105,7 +105,7 @@ Rails.application.routes.draw do get :branches post :watch get :watch_users - get :parise_users + get :praise_users get :fork_users end end