Class: Spina::Admin::AccountsController

Inherits:
AdminController show all
Defined in:
app/controllers/spina/admin/accounts_controller.rb

Instance Method Summary collapse

Methods inherited from AdminController

#current_admin_path

Instance Method Details

#analyticsObject



14
15
16
# File 'app/controllers/spina/admin/accounts_controller.rb', line 14

def analytics
  add_breadcrumb I18n.t('spina.preferences.analytics'), spina.
end

#editObject



5
6
7
# File 'app/controllers/spina/admin/accounts_controller.rb', line 5

def edit
  add_breadcrumb I18n.t('spina.preferences.account'), spina.
end

#socialObject



18
19
20
# File 'app/controllers/spina/admin/accounts_controller.rb', line 18

def social
  add_breadcrumb I18n.t('spina.preferences.social_media'), spina.
end

#styleObject



22
23
24
25
26
# File 'app/controllers/spina/admin/accounts_controller.rb', line 22

def style
  add_breadcrumb I18n.t('spina.preferences.style'), spina.
  @themes = ::Spina::Theme.all
  @layout_parts = current_theme.layout_parts.map { |layout_part| .layout_part(layout_part) }
end

#updateObject



9
10
11
12
# File 'app/controllers/spina/admin/accounts_controller.rb', line 9

def update
  .update()
  redirect_back fallback_location: spina.
end