def index
      set_index_options
      load_index if params[:reload].to_s.to_boolean(true)
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @notifications.to_json(include: [:target, :notifiable, :group]) }
      end
    end
def index
      set_index_options
      load_index if params[:reload].to_s.to_boolean(true)
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @notifications.to_json(include: [:target, :notifiable, :group]) }
      end
    end
Shows notification index of the target.

 GET /:target_type/:target_id/notifications
 @overload index(params)
   @param [Hash] params Request parameter options for notification index
   @option params [String] :filter                 (nil)     Filter option to load notification index (Nothing as auto, 'opened' or 'unopened')
   @option params [String] :limit                  (nil)     Limit to query for notifications
   @option params [String] :reverse                ('false') If notification index will be ordered as earliest first
   @option params [String] :without_grouping       ('false') If notification index will include group members
   @option params [String] :with_group_members     ('false') If notification index will include group members
   @option params [String] :filtered_by_type       (nil)     Notifiable type for filter
   @option params [String] :filtered_by_group_type (nil)     Group type for filter, valid with :filtered_by_group_id
   @option params [String] :filtered_by_group_id   (nil)     Group instance id for filter, valid with :filtered_by_group_type
   @option params [String] :filtered_by_key        (nil)     Key of the notification for filter
   @option params [String] :reload                 ('true')  Whether notification index will be reloaded
   @return [Responce] HTML view as default or JSON of notification index with json format parameter