2010-05-10 22:39:52 +00:00
|
|
|
module Admin
|
|
|
|
class MyAccountsController < BaseController
|
|
|
|
|
|
|
|
sections 'settings', 'account'
|
|
|
|
|
|
|
|
def edit
|
2010-06-10 22:07:59 +00:00
|
|
|
@account = current_admin
|
2010-05-10 22:39:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def update
|
2010-06-10 22:07:59 +00:00
|
|
|
@account = current_admin
|
2010-05-10 22:39:52 +00:00
|
|
|
if @account.update_attributes(params[:account])
|
|
|
|
flash_success!
|
|
|
|
redirect_to edit_admin_my_account_url
|
|
|
|
else
|
|
|
|
render :action => :edit
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|