Skip to content
New issue

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

Method to persist settings #7

Open
Startouf opened this issue Jan 11, 2017 · 0 comments
Open

Method to persist settings #7

Startouf opened this issue Jan 11, 2017 · 0 comments

Comments

@Startouf
Copy link

Suppose I have a Hash setting with nested values. Saving a nested value won't cause settings to be persisted

MySettings.blacklist_by_type # => { abuse: [], hack_attempt: [] }
MySettings.blacklist_by_type[:abuse] = my_blacklist #=> MySettings are not persisted !

I suggest making a persist or save method available as class method MySettings.save

@Startouf Startouf changed the title Method to persist all settings Method to persist settings Jan 11, 2017
Startouf added a commit to Startouf/mongoid-app_settings that referenced this issue Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant