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:
parent
2e872342dc
commit
9859ed06b9
1 changed files with 8 additions and 0 deletions
|
@ -94,6 +94,14 @@ module Fog
|
||||||
end
|
end
|
||||||
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
|
private
|
||||||
|
|
||||||
def queue
|
def queue
|
||||||
|
|
Loading…
Add table
Reference in a new issue