Skip to content

Commit

Permalink
[Bug] rhogallery api PUT request fails. Fixing url for PUT request
Browse files Browse the repository at this point in the history
  • Loading branch information
luis manotas martinez committed Sep 26, 2011
1 parent 6bdf3b3 commit b7c5321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rhogallery/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7c5321

Please sign in to comment.