workaround for lack of rabl behavior

This commit is contained in:
Seth Call 2016-09-09 09:56:13 -05:00
parent b781902f7d
commit bbe6b50489
1 changed files with 2 additions and 0 deletions

View File

@ -401,6 +401,8 @@ class LandingsController < ApplicationController
@preview = !params[:preview].nil?
@show_approved_only = true
# isn't working. totaly hack:
@school.teachers = @school.approved_teachers
schoolRabl = Rabl::Renderer.json(@school, 'api_schools/show')
@page_data = {school: @school, preview: @preview, rabl: schoolRabl}