Browse Source

Merge branch 'pre_trustie_server' into trustie_server

pull/314/head
“xxq250” 3 years ago
parent
commit
5d2c27ad84
2 changed files with 8 additions and 0 deletions
  1. +7
    -0
      app/controllers/users_controller.rb
  2. +1
    -0
      config/routes.rb

+ 7
- 0
app/controllers/users_controller.rb View File

@@ -57,6 +57,13 @@ class UsersController < ApplicationController
Cache::V2::OwnerCommonService.new(@user.id).read
end

def action
if params[:action_id].present? && params[:action_type].present?
UserAction.create(:action_id => params[:action_id], :action_type => "#{params[:action_type]}", :user_id => User.current.id, :ip => request.remote_ip)
end
render_ok
end

def watch_users
watchers = Watcher.watching_users(@user.id).includes(:user).order("watchers.created_at desc")
if params[:search].present?


+ 1
- 0
config/routes.rb View File

@@ -267,6 +267,7 @@ Rails.application.routes.draw do
get :trustie_related_projects
post :sync_user_info
get :email_search
post :action

scope '/ci', module: :ci do
scope do


Loading…
Cancel
Save