def read  #:nodoc:
      form_ar_options
      use_default_or_unscoped do
        @resultset = if self.output_csv? || all_record_mode?
          relation = @relation
                     .includes(@ar_options[:include])
                     .joins(@ar_options[:joins])
                     .order(@ar_options[:order])
                     .group(@ar_options[:group])
                     .merge(@ar_options[:conditions])
          relation = add_references relation

          relation
        else
          # p @ar_options
          relation = @relation
                     .send(@options[:page_method_name], @ar_options[:page])
                     .per(@ar_options[:per_page])
                     .includes(@ar_options[:include])
                     .joins(@ar_options[:joins])
                     .order(@ar_options[:order])
                     .group(@ar_options[:group])
                     .merge(@ar_options[:conditions])

          relation = add_references relation

          relation
        end
      end
      invoke_resultset_callbacks
    end
def read  #:nodoc:
      form_ar_options
      use_default_or_unscoped do
        @resultset = if self.output_csv? || all_record_mode?
          relation = @relation
                     .includes(@ar_options[:include])
                     .joins(@ar_options[:joins])
                     .order(@ar_options[:order])
                     .group(@ar_options[:group])
                     .merge(@ar_options[:conditions])
          relation = add_references relation

          relation
        else
          # p @ar_options
          relation = @relation
                     .send(@options[:page_method_name], @ar_options[:page])
                     .per(@ar_options[:per_page])
                     .includes(@ar_options[:include])
                     .joins(@ar_options[:joins])
                     .order(@ar_options[:order])
                     .group(@ar_options[:group])
                     .merge(@ar_options[:conditions])

          relation = add_references relation

          relation
        end
      end
      invoke_resultset_callbacks
    end
TO DO: what to do with other @ar_options values?