Created
August 11, 2014 16:30
-
-
Save GustavoCaso/69db7478c9cbd68ed9be to your computer and use it in GitHub Desktop.
Question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write a model (ActiveRecord-based) for storing global configuration settings. It will be used for storing single values, for example an email address to send error emails to, or a flag enable/disable a particular feature. The interface must be simple and convenient, it should be possible to read and write specific configuration items. It must be possible to store values of these 4 types: string, integer, float and boolean. The model should come with a unit test and a migration. | |
Bonus: add caching within the model so that values are cached in regular Rails cache to minimize db load. | |
Please include a quick summary of use and commentary regarding any design decisions. Please indicate how long you spent working on this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment