Skip to content

Fails based on yaml type #1

@inspire22

Description

@inspire22

My project has been around for awhile, and yaml used to store without the object type prefixing the hash data:

--- 
edge_bg: "979949"
ljust: "0"

i.edge_bg
=> nil

If I update it to this, it works:

--- !map:HashWithIndifferentAccess
edge_bg: "979949"
ljust: "0"

i.edge_bg
=> "979949"

Rails still loads/serializes it just fine in either mode

i.colors
=> {"edge_bg"=>"979949", "ljust"=>"0"}

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions