Class: Locomotive::MyAccountController
Instance Method Summary
collapse
#require_ssl
#current_site_public_url, #public_page_url, #switch_to_site_url
#sections
#back_to_default_site_locale, #current_content_locale, #localized?, #set_back_office_locale, #set_current_content_locale, #setup_i18n_fallbacks
Instance Method Details
#edit ⇒ Object
12
13
14
15
|
# File 'app/controllers/locomotive/my_account_controller.rb', line 12
def edit
@account = current_locomotive_account
respond_with @account
end
|
#regenerate_api_key ⇒ Object
23
24
25
26
27
|
# File 'app/controllers/locomotive/my_account_controller.rb', line 23
def regenerate_api_key
@account = current_locomotive_account
@account.regenerate_api_key!
respond_with({ api_key: @account.api_key }, location: edit_my_account_path)
end
|
#update ⇒ Object
17
18
19
20
21
|
# File 'app/controllers/locomotive/my_account_controller.rb', line 17
def update
@account = current_locomotive_account
@account.update_attributes(params[:account])
respond_with @account, location: edit_my_account_path
end
|