26 lines
436 B
Ruby
26 lines
436 B
Ruby
module Admin
|
|
class MyAccountController < BaseController
|
|
|
|
sections 'settings', 'account'
|
|
|
|
actions :edit, :update
|
|
|
|
respond_to :json, :only => :update
|
|
|
|
skip_load_and_authorize_resource
|
|
|
|
def update
|
|
update! { edit_admin_my_account_url }
|
|
end
|
|
|
|
protected
|
|
|
|
def resource
|
|
@account = current_admin
|
|
end
|
|
|
|
def begin_of_association_chain; nil; end # not related directly to current_site
|
|
|
|
end
|
|
end
|