Sha256: f40f9573ebec5afdf40ebabc62cf9a93e3ea72a4797abceb48d55c213fc04d06
Contents?: true
Size: 717 Bytes
Versions: 13
Compression:
Stored size: 717 Bytes
Contents
format do def search_params @search_params ||= default_search_params end # used for override def default_search_params if (qparams = query_params) paging_params.merge vars: qparams else paging_params end end def paging_params { limit: limit, offset: offset } end def query_params return nil unless (vars = params[:query]) Env.hash vars end def default_limit 100 end def extra_paging_path_args (vars = query_params) ? { query: vars } : {} end end format :html do def default_limit Cardio.config.paging_limit || 20 end end format :json do def default_limit 20 end end format :rss do def default_limit 25 end end
Version data entries
13 entries across 13 versions & 1 rubygems