lib/restful_resource/base.rb in restful_resource-0.0.5 vs lib/restful_resource/base.rb in restful_resource-0.0.6
- old
+ new
@@ -8,10 +8,10 @@
url = @url
params.keys.each do |key|
url = url.gsub(':'+key.to_s, params[key].to_s)
end
- url_params = url.scan(/:([^\/]+)/)
+ url_params = url.scan(/:([A-Za-z][^\/]*)/)
if url_params.any?
raise ParameterMissingError.new(url_params)
end
url