Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

monkey patch tire for bonsai.io (2)

  • Loading branch information...
commit d0cc28add7e4675e841b47822ad282ea3869635a 1 parent 429893b
Sébastien Gruhier authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  config/initializers/tire.rb
View
2  config/initializers/tire.rb
@@ -17,7 +17,7 @@ def store(*args)
document = convert_document_to_json(document)
# Change that to avoid double / in URL, bonsai.io don't like that
- url = "#{Configuration.url}#{(id ? "/#{@name}/#{type}/#{id}" : "/#{@name}/#{type}/").squeeze('.')}"
+ url = "#{Configuration.url}#{(id ? "/#{@name}/#{type}/#{id}" : "/#{@name}/#{type}/").squeeze('/')}"
url += "?percolate=#{percolate}" if percolate
@response = Configuration.client.post url, document
Please sign in to comment.
Something went wrong with that request. Please try again.