Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 496 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 496 Bytes

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 :)