21 lines
415 B
Ruby
21 lines
415 B
Ruby
|
module Admin
|
||
|
class MyAccountsController < BaseController
|
||
|
|
||
|
sections 'settings', 'account'
|
||
|
|
||
|
def edit
|
||
|
@account = current_account
|
||
|
end
|
||
|
|
||
|
def update
|
||
|
@account = current_account
|
||
|
if @account.update_attributes(params[:account])
|
||
|
flash_success!
|
||
|
redirect_to edit_admin_my_account_url
|
||
|
else
|
||
|
render :action => :edit
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|