lib/toughguy/query.rb
def set_pagination_info(page_no, page_size, record_count)
      @current_page = page_no
      @per_page = page_size
      @total_count = record_count
      @total_pages = (record_count / page_size.to_f).ceil
    
      extend PaginationMethods

      self
    end
def set_pagination_info(page_no, page_size, record_count)
      @current_page = page_no
      @per_page = page_size
      @total_count = record_count
      @total_pages = (record_count / page_size.to_f).ceil
    
      extend PaginationMethods

      self
    end
def set_pagination_info ( page_no , page_size , record_count ) @current_page = page_no @per_page = page_size @total_count = record_count @total_pages = ( record_count / page_size . to_f ) . ceil extend PaginationMethods self end
Sets the pagination info
Sets the pagination info