class Family::Legacy::Students::DetailsController < Family::Controller
  def show
    render_success :ok, json: props
  end

  private
    def details
      @details ||= student.find_or_build_detail.decorate
    end

    def props
      {
        birth_city: details.birth_city,
        birth_state_name: details.birth_state_name,
        birth_country_name: details.birth_country_name
      }
    end
end
