Skip to content
Snippets Groups Projects
Unverified Commit dc68b5b0 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

remove useless code

parent 750c17ed
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,6 @@ class University::Person::Involvement < ApplicationRecord
belongs_to :person, class_name: 'University::Person'
belongs_to :target, polymorphic: true
belongs_to :university_role,
-> { where(university_person_involvements: { target_type: 'University::Role' }) },
class_name: "University::Role",
foreign_key: "target_id"
validates :person_id, uniqueness: { scope: [:target_id, :target_type] }
validates :target_id, uniqueness: { scope: [:person_id, :target_type] }
......
......@@ -6,7 +6,12 @@
<i class="fa fa-bars handle"></i>
</div>
<div class="col-9">
<%= f.association :person, collection: @administration_people, label: false, include_blank: :translate, wrapper: false, required: true %>
<%= f.association :person,
collection: @administration_people,
label: false,
include_blank: :translate,
wrapper: false,
required: true %>
</div>
<div class="col-2">
<%= link_to_remove_association '<i class="fas fa-times"></i>'.html_safe, f, class: 'btn btn-sm btn-danger' %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment