Class: Spina::Admin::AccountsController
- Inherits:
-
AdminController
- Object
- ActionController::Base
- Spina::ApplicationController
- AdminController
- Spina::Admin::AccountsController
- Defined in:
- app/controllers/spina/admin/accounts_controller.rb
Instance Method Summary collapse
Methods inherited from AdminController
Instance Method Details
#analytics ⇒ Object
14 15 16 |
# File 'app/controllers/spina/admin/accounts_controller.rb', line 14 def analytics I18n.t('spina.preferences.analytics'), spina.analytics_admin_account_path end |
#edit ⇒ Object
5 6 7 |
# File 'app/controllers/spina/admin/accounts_controller.rb', line 5 def edit I18n.t('spina.preferences.account'), spina.edit_admin_account_path end |
#social ⇒ Object
18 19 20 |
# File 'app/controllers/spina/admin/accounts_controller.rb', line 18 def I18n.t('spina.preferences.social_media'), spina. end |
#style ⇒ Object
22 23 24 25 26 |
# File 'app/controllers/spina/admin/accounts_controller.rb', line 22 def style I18n.t('spina.preferences.style'), spina.style_admin_account_path @themes = ::Spina::Theme.all @layout_parts = current_theme.layout_parts.map { |layout_part| current_account.layout_part(layout_part) } end |
#update ⇒ Object
9 10 11 12 |
# File 'app/controllers/spina/admin/accounts_controller.rb', line 9 def update current_account.update(account_params) redirect_back fallback_location: spina.edit_admin_account_path end |