app/models/seminar_member/student.rb
# accept enrollment to a seminar by teacher

accept enrollment to a seminar by teacher
accept enrollment to a seminar by teacher
def to_accept(locked_states, span = Run.get_academic_year_range_for_time)
    transaction do
      update_run!( :now, {:is_accepted => true}, locked_states)
      other_enrollments(self.student, span).each do |enrll|
        enrll.delete_run!
      end
    end
  end
def to_accept ( locked_states , span = Run . get_academic_year_range_for_time ) transaction do update_run! ( :now , { :is_accepted => true } , locked_states ) other_enrollments ( self . student , span ) . each do | enrll | enrll . delete_run! end end end
accept enrollment to a seminar by teacher
accept enrollment to a seminar by teacher
locked_states
<not_specific>
span
<not_specific>
get_academic_year_range_for_time
<not_specific>