Merged pull request #38 from iwarshak/master.
fix bug in OrderedHash that prevents YAML.load
This commit is contained in:
commit
eef9abfbdf
|
@ -57,8 +57,13 @@ module BSON
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(*a, &b)
|
def initialize(*a, &b)
|
||||||
super
|
|
||||||
@ordered_keys = []
|
@ordered_keys = []
|
||||||
|
super
|
||||||
|
end
|
||||||
|
|
||||||
|
def yaml_initialize(tag, val)
|
||||||
|
@ordered_keys = []
|
||||||
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
def keys
|
def keys
|
||||||
|
|
Loading…
Reference in New Issue