Created
          December 10, 2014 15:33 
        
      - 
      
 - 
        
Save maxd/617e9ac32c638610ffd2 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def append_additional_url_params(url) | |
| uri = URI(url) | |
| params = URI.decode_www_form(uri.query || '') | |
| params += additional_url_params.to_a | |
| uri.query = URI.encode_www_form(params).to_s | |
| uri.to_s | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment