pass_server.rb
# Convenience method for parsing the pushToken out of a JSON POST body
Convenience method for parsing the pushToken out of a JSON POST body
Convenience method for parsing the pushToken out of a JSON POST body
def push_token
    if request && request.body
      request.body.rewind
      json_body = JSON.parse(request.body.read)
      if json_body['pushToken']
        json_body['pushToken']
      end
    end
  end
def push_token if request && request . body request . body . rewind json_body = JSON . parse ( request . body . read ) if json_body [ 'pushToken' ] json_body [ 'pushToken' ] end end end
Convenience method for parsing the pushToken out of a JSON POST body
Convenience method for parsing the pushToken out of a JSON POST body