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

A hack to fix the Claim#messages= hack on 1.8.7.

This commit is contained in:
Ash Wilson 2014-01-21 13:34:26 -05:00
parent 2e872342dc
commit 9859ed06b9

View file

@ -94,6 +94,14 @@ module Fog
end
end
def initialize(new_attributes = {})
# A hack in support of the #messages= hack up above. #messages= requires #collection to
# be populated first to succeed, which is always the case in modern Rubies that preserve
# Hash ordering, but not in 1.8.7.
@collection = new_attributes.delete(:collection)
super(new_attributes)
end
private
def queue