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: comments_controller.rb
    path of file: ./repos/osem/app/controllers/admin
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Admin
  class CommentsController < Admin::BaseController
    load_and_authorize_resource

 
    
    def index
      # All available comments, grouped and sorted
      @comments = grouped_comments(accessible_ordered_comments)

      # Grouped, sorted, available comments, posted since current_user last login
      @unread_comments = grouped_comments(accessible_ordered_comments.find_since_last_login(current_user))

      # Grouped, sorted, available comments, posted by current_user
      @posted_comments = grouped_comments(accessible_ordered_comments.find_comments_by_user(current_user))
    end