Permalink
Browse files

[Bug] rhogallery api PUT request fails. Fixing url for PUT request

  • Loading branch information...
1 parent 6bdf3b3 commit b7c5321c8a7b7cc3976d6a663b251204e9f1220c luis manotas martinez committed Sep 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rhogallery/base.rb
View
@@ -47,7 +47,7 @@ def delete(options, resource)
end
def save(data, options, resource)
- self.id ? update(data, options, resource) : create(data, options, resource)
+ self.id ? update(data, options, "#{resource}/#{self.id}") : create(data, options, resource)
end
def self.find_all(options, resource)

0 comments on commit b7c5321

Please sign in to comment.