Class: UsersController

Inherits:
ApplicationController show all
Includes:
InchCI::Controller
Defined in:
app/controllers/users_controller.rb

Instance Method Summary collapse

Methods included from InchCI::Controller

#expose

Instance Method Details

#init_projectsObject


10
11
12
13
14
15
16
# File 'app/controllers/users_controller.rb', line 10

def init_projects
  action = Action::User::InitProjects.new(current_user, params)
  expose action
  respond_to do |format|
    format.js
  end
end

#showObject


27
28
29
30
# File 'app/controllers/users_controller.rb', line 27

def show
  action = Action::User::Show.new(current_user, params)
  expose action
end

#sync_projectsObject


18
19
20
21
22
23
24
25
# File 'app/controllers/users_controller.rb', line 18

def sync_projects
  action = Action::User::SyncProjects.new(current_user, params)
  expose action
  respond_to do |format|
    format.html { redirect_to user_url(action.user) }
    format.js
  end
end

#welcomeObject


32
33
34
35
# File 'app/controllers/users_controller.rb', line 32

def welcome
  action = Action::User::Welcome.new(current_user)
  expose action
end