graspapp/grasp

View on GitHub
app/admin/concept.rb

Summary

Maintainability
A
0 mins
Test Coverage
ActiveAdmin.register Concept do
  permit_params :number, :description

  index do
    column :id
    column :name
    column :description
    column :unit, sortable: :unit_number
    default_actions
  end

  filter :name
  filter :description

  sidebar :unit_information, only: :show do
    attributes_table_for concept.unit do
      row("Unit") { auto_link concept.unit }
    end
  end
end