Skip to content

A simple database key-value settings system for settings that can't be in yaml files.

License

Notifications You must be signed in to change notification settings

argu-co/simple_settings

Repository files navigation

Simple_settings

A simple way to set key value pairs in the database.

Usage

Install the migration adding the 'settings' table to your database:

    rake simple_settings:install:migrations

Restart your server and get or set values:

Setting.get :preferred_flavour
Setting.set :preferred_flavour, "Nacho cheese"

Note: If you try to get a setting which doesn't exists yet, it will be created on the fly as being an empty string.

##Pull requests Are always welcome :)

About

A simple database key-value settings system for settings that can't be in yaml files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages