Application Settings for Ruby on Rails built on Active Record
Simplified, permanent key-value store for global application settings.
Getting Started
Add following to Gemfile
:
gem 'ar-settings', require: 'settings'
then bundle install
Run generator to add migration:
$ rails generate install_settings
Usage
Gem implements minimal amount of public methods needed to manage settings:
Settings.set(:key, 'value')
Settings.get(:key)
Settings.has(:key)
Settings.unset(:key)
To do
- Allow mass assignments
- Utilize
Rails.cache
to reduce overhead of querying db
Licence
Licensed under the MIT license.