lib/mangabey/client_pager.rb
# SurveyMonkey doesn't include the 'title' param in the links, so their provided
# pagination is quite wrong when using search terms. It's therefore necessary
# always to merge in the local params
SurveyMonkey doesn't include the 'title' param in the links, so their provided
pagination is quite wrong when using search terms. It's therefore necessary
always to merge in the local params
SurveyMonkey doesn ' t include the ' title ' param in the links so their provided pagination is quite wrong when using search terms . It ' s therefore necessary always to merge in the local params
def merge_params(url)
      url = URI(url.to_s)
      current_params = CGI.parse(url.query || '')
      url.query = URI.encode_www_form(current_params.merge(query || {}))
      url
    end
def merge_params ( url ) url = URI ( url . to_s ) current_params = CGI . parse ( url . query || '' ) url . query = URI . encode_www_form ( current_params . merge ( query || { } ) ) url end
SurveyMonkey doesn't include the 'title' param in the links, so their provided
pagination is quite wrong when using search terms.
SurveyMonkey doesn ' t include the ' title ' param in the links so their provided pagination is quite wrong when using search terms .
url