Class: DmCore::Admin::SystemController
- Inherits:
-
AdminController
- Object
- AdminController
- DmCore::Admin::SystemController
- Includes:
- PermittedParams
- Defined in:
- app/controllers/dm_core/admin/system_controller.rb
Overview
For managing system wide settings, sites, etc
Instance Method Summary collapse
-
#general ⇒ Object
——————————————————————————.
-
#show ⇒ Object
——————————————————————————.
Methods included from PermittedParams
#account_params, #comment_params, #devise_sign_up_params, #user_params, #user_profile_direct_params, #user_profile_params
Instance Method Details
#general ⇒ Object
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(account_params) redirect_to(dm_core.admin_account_general_path, notice: "Account was successfully updated.") and return else render action: "general" end end end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/dm_core/admin/system_controller.rb', line 9 def show @accounts = Account.unscoped.all.order(:domain) end |