87d81e608b
- Drop from 313 unused routes to 306 unused routes - Use a namespace for the account-related resource routes - Controllers are nested under the "Account" module now - Move views from "accounts/" to "account/"
13 lines
381 B
Ruby
13 lines
381 B
Ruby
class Account::EntropyConfigurationsController < ApplicationController
|
|
def update
|
|
Entropy::Configuration.default.update!(entropy_configuration_params)
|
|
|
|
redirect_to account_settings_path, notice: "Account updated"
|
|
end
|
|
|
|
private
|
|
def entropy_configuration_params
|
|
params.expect(entropy_configuration: [ :auto_close_period, :auto_reconsider_period ])
|
|
end
|
|
end
|