Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/models/class_member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ class ClassMember < ApplicationRecord

validate :student_has_the_school_student_role_for_the_school

has_paper_trail(
meta: {
meta_school_id: ->(cm) { cm.school_class&.school_id }
}
)

private

def student_has_the_school_student_role_for_the_school
Expand Down