We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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..
The text was updated successfully, but these errors were encountered:
Yep I'm not sure deeply nested defaults are supported. You might need to workaround your problem and consider
defaults
has_settings do |s| s.key :conecction, :defaults => { :user => '', :password => '', :credentials_token => '', :credentials_mail => '' } end
... although you potentially also want to reconsider the format in which you're storing passwords, if you're storing them in plain text.
Sorry, something went wrong.
No branches or pull requests
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..
The text was updated successfully, but these errors were encountered: