CLOSER-Cohorts/archivist

View on GitHub
app/controllers/basic_instrument_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class BasicInstrumentController < BasicController
  prepend_before_action :set_instrument

  private
  def collection
    @instrument.send self.class.model_class.name.tableize
  end

  def set_instrument
    @instrument = policy_scope(Instrument).friendly.find(params[:instrument_id])
  end
end