From: Michal Fojtik <[email protected]>
---
server/lib/sinatra/rabbit.rb | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/server/lib/sinatra/rabbit.rb b/server/lib/sinatra/rabbit.rb
index 75c0789..36fd5e7 100644
--- a/server/lib/sinatra/rabbit.rb
+++ b/server/lib/sinatra/rabbit.rb
@@ -142,12 +142,12 @@ module Sinatra
if @member
::Sinatra::Application.send(:define_method, name) do |id, *args|
url = query_url(route_url, args[0])
- url_for url.gsub(/:id/, id.to_s), :full
+ url_for url.gsub(/:id/, id.to_s) #, :full
end
else
::Sinatra::Application.send(:define_method, name) do |*args|
url = query_url(route_url, args[0])
- url_for url, :full
+ url_for url #, :full
end
end
end
@@ -231,12 +231,12 @@ module Sinatra
app = ::Sinatra::Application
collname = name # Work around Ruby's weird scoping/capture
app.send(:define_method, "#{name.to_s.singularize}_url") do |id|
- url_for "/api/#{collname}/#{id}", :full
+ url_for "/api/#{collname}/#{id}" #, :full
end
if index_op = operations[:index]
app.send(:define_method, "#{name}_url") do
- url_for index_op.path.gsub(/\/\?$/,''), :full
+ url_for index_op.path.gsub(/\/\?$/,'') #, :full
end
end
end
@@ -284,7 +284,7 @@ module Sinatra
collections.values.select { |coll|
driver.has_collection?(coll.name)
}.inject([]) do |m, coll|
- url = url_for coll.operations[:index].path, :full
+ url = url_for coll.operations[:index].path #, :full
m << [ coll.name, url ]
end
end
--
1.7.4