parent
50c7e9815e
commit
b1e13758d3
@ -0,0 +1,11 @@
|
||||
class DepartmentsController < ApplicationController
|
||||
def for_option
|
||||
render_ok(departments: Department.cached_names_data(current_school))
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def current_school
|
||||
@_current_school ||= School.find(params[:id])
|
||||
end
|
||||
end
|
Loading…
Reference in new issue