osunyorg/admin

View on GitHub
app/models/university/person/with_involvements.rb

Summary

Maintainability
A
0 mins
Test Coverage
module University::Person::WithInvolvements
  extend ActiveSupport::Concern

  included do
    has_many  :involvements,
              class_name: 'University::Person::Involvement',
              dependent: :destroy

    accepts_nested_attributes_for :involvements
  end
end