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: issue_comments_controller.rb
    path of file: ./repos/openstreetmap-website/app/controllers
    
    the code of the file until where you have to start completion: class IssueCommentsController < ApplicationController
  layout "site"

  before_action :authorize_web
  before_action :set_locale
  before_action :check_database_re
    
  def create
    @issue = Issue.find(params[:issue_id])
    comment = @issue.comments.build(issue_comment_params)
    comment.user = current_user
    comment.save!

    if params[:reassign]
      reassign_issue(@issue)
      flash[:notice] = t ".issue_reassigned"

      if current_user.role? @issue.assigned_role
        redirect_to @issue
      else
        redirect_to issues_path(:status => "open")
      end