263bc486ed
so we don't disturb the rest of the edit page.
15 lines
504 B
Ruby
15 lines
504 B
Ruby
class Collections::EntropyConfigurationsController < ApplicationController
|
|
include CollectionScoped
|
|
|
|
def update
|
|
@collection.entropy_configuration.update!(entropy_configuration_params)
|
|
|
|
render turbo_stream: turbo_stream.replace([ @collection, :entropy_configuration ], partial: "collections/edit/auto_close", locals: { collection: @collection })
|
|
end
|
|
|
|
private
|
|
def entropy_configuration_params
|
|
params.expect(collection: [ :auto_close_period, :auto_reconsider_period ])
|
|
end
|
|
end
|