|
|
@ -36,12 +36,12 @@ class Ecs::RequirementSupportObjectivesController < Ecs::BaseController
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
def check_record_exists!
|
|
|
|
def check_record_exists!
|
|
|
|
unless current_year.ec_graduation_requirements.exists?(id: params[:graduation_requirement_id])
|
|
|
|
unless current_year.ec_graduation_requirements.exists?(id: params[:ec_graduation_requirement_id])
|
|
|
|
render_not_found
|
|
|
|
render_not_found
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
unless current_year.ec_training_subitems.exists?(id: params[:training_subitem_id])
|
|
|
|
unless current_year.ec_training_subitems.exists?(id: params[:ec_training_subitem_id])
|
|
|
|
render_not_found
|
|
|
|
render_not_found
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|