Class: OpenStax::Accounts::Dev::AccountsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- OpenStax::Accounts::Dev::AccountsController
- Defined in:
- app/controllers/openstax/accounts/dev/accounts_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#become ⇒ Object
20 21 22 23 24 |
# File 'app/controllers/openstax/accounts/dev/accounts_controller.rb', line 20 def become @account = Account.find_by(openstax_uid: params[:id]) sign_in(@account) redirect_back key: :accounts_return_to, strategies: [:session] end |
#create ⇒ Object
15 16 17 18 |
# File 'app/controllers/openstax/accounts/dev/accounts_controller.rb', line 15 def create handle_with(AccountsCreate, complete: lambda { redirect_to dev_accounts_path }) end |
#index ⇒ Object
8 9 |
# File 'app/controllers/openstax/accounts/dev/accounts_controller.rb', line 8 def index end |
#search ⇒ Object
11 12 13 |
# File 'app/controllers/openstax/accounts/dev/accounts_controller.rb', line 11 def search handle_with(AccountsSearch) end |