Class: OpenStax::Accounts::Dev::UsersController

Inherits:
DevController show all
Defined in:
app/controllers/openstax/accounts/dev/users_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_user

Instance Method Details

#becomeObject



13
14
15
16
# File 'app/controllers/openstax/accounts/dev/users_controller.rb', line 13

def become
  (User.find(params[:user_id]))
  redirect_to return_url(true)
end

#loginObject



6
# File 'app/controllers/openstax/accounts/dev/users_controller.rb', line 6

def ; end

#searchObject



8
9
10
11
# File 'app/controllers/openstax/accounts/dev/users_controller.rb', line 8

def search
  handle_with(OpenStax::Accounts::Dev::UsersSearch,
              complete: lambda { render 'search' })
end