2010-05-10 22:39:52 +00:00
|
|
|
module Admin
|
|
|
|
class MyAccountsController < BaseController
|
|
|
|
|
|
|
|
sections 'settings', 'account'
|
|
|
|
|
2010-07-13 00:46:17 +00:00
|
|
|
actions :edit, :update
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2010-07-13 20:01:40 +00:00
|
|
|
respond_to :json, :only => :update
|
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
def update
|
2010-07-13 00:46:17 +00:00
|
|
|
update! { edit_admin_my_account_url }
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def resource
|
2010-06-10 22:07:59 +00:00
|
|
|
@account = current_admin
|
2010-05-10 22:39:52 +00:00
|
|
|
end
|
|
|
|
|
2010-07-13 00:46:17 +00:00
|
|
|
def begin_of_association_chain; nil; end # not related directly to current_site
|
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
end
|
|
|
|
end
|