app/controllers/cc_conditions_controller.rb
# frozen_string_literal: true
# A controller for the model {CcCondition}
class CcConditionsController < ConstructController
# Allow topic linking
include Linkable::Controller
# Initialise finding object for item based actions
only_set_object { %i{set_topic} }
# Set model for automatic CRUD actions
@model_class = CcCondition
# List of params that can be set and edited
@params_list = [:id, :literal, :logic]
private
def collection
@instrument.cc_conditions
end
end