1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|compute] adding parameter to save method in order to make it more polymorphic

This commit is contained in:
Kyle Rames 2013-06-26 14:41:49 -05:00
parent 8c87f82b2a
commit 3afa23d655

View file

@ -65,7 +65,7 @@ module Fog
true
end
def save
def save(options = {})
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
requires :flavor_id, :image_id
options = {