Class: DmCore::Admin::SystemController

Inherits:
AdminController
  • Object
show all
Includes:
PermittedParams
Defined in:
app/controllers/dm_core/admin/system_controller.rb

Overview

For managing system wide settings, sites, etc


Instance Method Summary collapse

Methods included from PermittedParams

#account_params, #comment_params, #devise_sign_up_params, #user_params, #user_profile_direct_params, #user_profile_params

Instance Method Details

#generalObject




14
15
16
17
18
19
20
21
22
23
# File 'app/controllers/dm_core/admin/system_controller.rb', line 14

def general
  if put_or_post?
    @account.general_validation = true
    if @account.update_attributes()
      redirect_to(dm_core., notice: "Account was successfully updated.") and return
    else
      render action: "general"
    end
  end
end

#showObject




9
10
11
# File 'app/controllers/dm_core/admin/system_controller.rb', line 9

def show
  @accounts = Account.unscoped.all.order(:domain)
end