lib/sinatra/pagers.rb
# Adapt the cds_pre dataset, using decisions made by a user
# @param ads [AnalysisUserDecision]
# @param cds_pre [Sequel::Dataset]
Adapt the cds_pre dataset, using decisions made by a user
Adapt the cds_pre dataset using decisions made by a user
def adapt_ads_cds(ads, cds_pre, no_query:false)
        paqa=PagerAdsQueryAdapter.new(self, ads, cds_pre, no_query: no_query)
        @max_page=(paqa.cds_out.count/self.cpp.to_f).ceil
        adjust_page_order(paqa.cds_out)
      end
def adapt_ads_cds ( ads , cds_pre , no_query : false ) paqa = PagerAdsQueryAdapter . new ( self , ads , cds_pre , no_query : no_query ) @max_page = ( paqa . cds_out . count / self . cpp . to_f ) . ceil adjust_page_order ( paqa . cds_out ) end
Adapt the cds_pre dataset, using decisions made by a user
Adapt the cds_pre dataset using decisions made by a user
ads
cds_pre
no_query
None