You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/controllers/ecs/homes_controller.rb

16 lines
309 B

6 years ago
class Ecs::HomesController < Ecs::BaseController
def index
@school_managers = current_school.users
end
5 years ago
def first_stamp
render :json => { status: 0, message: Time.now.to_i }
end
6 years ago
private
def current_school
@_current_school ||= School.find(params[:school_id])
end
end