Sha256: 99bffdd344ad44ea5b3ba8a4a9c7db3b643fe38fc406459cc7517c264952b43f
Contents?: true
Size: 281 Bytes
Versions: 2
Compression:
Stored size: 281 Bytes
Contents
class AccountsController < ApplicationController def switch account_uuid = params[:accounts][:account_uuid] user = User.find(:uuid => @current_user.uuid) user.primary_account_id = account_uuid user.save redirect_to :root end def index end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wakame-vdc-webui-10.12.0 | app/controllers/accounts_controller.rb |
wakame-vdc-webui-10.11.0 | app/controllers/accounts_controller.rb |