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

[core] Fix service instance variable being included when doing

model.to_json
This commit is contained in:
Philip Mark M. Deazeta 2013-01-11 14:28:13 +08:00
parent f408d76754
commit a86dcbd596

View file

@ -12,7 +12,7 @@ module Fog
def initialize(new_attributes = {})
# TODO Remove compatibility with old connection option
@service = @service || new_attributes.delete(:service)
@service = new_attributes.delete(:service)
if @service.nil? && new_attributes[:connection]
Fog::Logger.deprecation("Passing :connection option is deprecated, use :service instead [light_black](#{caller.first})[/]")
@service = new_attributes[:connection]