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:
parent
f408d76754
commit
a86dcbd596
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue