class School::Legacy::FamilyProfileConfigsController < ApplicationController
  def show
    render_success :ok, json: config_props
  end

  private
    def config
      @config ||= current_school.find_or_build_family_profile_config
    end

    def config_props
      {}.tap do |props|
        props[:allow_student] = config.allow_student?
        props[:allow_family] = config.allow_family?
      end
    end
end
