Skip to content

Default settings with a nested hash #92

@FabianPv

Description

@FabianPv

example:
default settings with this hash
has_settings do |s|
s.key :conecction, :defaults => {
:user => '',
:password => ''
}
end

it's working perfectly, but if I use a nested hash like this one:

has_settings do |s|
s.key :conecction, :defaults => {
:user => '',
:password => '',
:credentials => { :token: "", :mail:"" }
}
end

once the values are assigned, the database it's only stores the user and the password..

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