You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: push_notifications_controller.rb
    path of file: ./repos/serviceworker-rails-sandbox/app/controllers
    
    the code of the file until where you have to start completion: class PushNotificationsController < ApplicationController
  def create
    Rails.logger.info "Sending push notification from #{push_params.insp
    
  def create
    Rails.logger.info "Sending push notification from #{push_params.inspect}"
    subscription_params = fetch_subscription_params

    WebpushJob.perform_later fetch_message,
      endpoint: subscription_params[:endpoint],
      p256dh: subscription_params.dig(:keys, :p256dh),
      auth: subscription_params.dig(:keys, :auth)

    head :ok
  end