CLOSER-Cohorts/archivist

View on GitHub
app/controllers/cc_loops_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# A controller for the model {CcLoop}
class CcLoopsController < 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 = CcLoop

  # List of params that can be set and edited
  @params_list = [:id, :loop_var, :start_val, :end_val, :loop_while]
end