def render_subjects
      render json: {
        subject_model_sym_plural => @subjects.as_json(only: permitted_fields_for_show),
        total_pages: @subjects.total_pages,
        total_entries: @subjects.total_entries,
        current_page: @subjects.current_page,
        per_page: @subjects.per_page
      }
    end
def render_subjects
      render json: {
        subject_model_sym_plural => @subjects.as_json(only: permitted_fields_for_show),
        total_pages: @subjects.total_pages,
        total_entries: @subjects.total_entries,
        current_page: @subjects.current_page,
        per_page: @subjects.per_page
      }
    end
Renders json with subjects
 @note Override this method to add more complicated logic of rendering.
   Override {Subject#subject_model_sym_plural subject_model_sym_plural} to change root attribute.
   Override {Params#permitted_fields_for_show permitted_fields_for_show} to change shown attributes.
 @used_in {Chains#index_chain}
 @use {Subject#subject_model_sym_plural}
 @use {Params#permitted_fields_for_show}
 @example
   class BooksController < ApplicationController
     include RestingPug::Base

     private
     # Override a render_subjects to render with 'items' as a root object
     render json: {
       items: @subjects.as_json(only: permitted_fields_for_show),
       total_pages: @subjects.total_pages,
       total_entries: @subjects.total_entries,
       current_page: @subjects.current_page,
       per_page: @subjects.per_page
     }
   end