Permalink
Browse files

monkey patch tire for bonsai.io (2)

  • Loading branch information...
1 parent 429893b commit d0cc28add7e4675e841b47822ad282ea3869635a Sébastien Gruhier committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit d0cc28a

Please sign in to comment.