README.md in rails-settings-cached-0.5.4 vs README.md in rails-settings-cached-0.5.5

- old
+ new

@@ -7,17 +7,21 @@ setting that you dont want to hard code into your rails app. You can store any kind of object. Strings, numbers, arrays, or any object. ## Status -[![Gem Version](https://badge.fury.io/rb/rails-settings-cached.svg)](https://rubygems.org/gems/rails-settings-cached) [![CI Status](https://api.travis-ci.org/huacnlee/rails-settings-cached.svg)](http://travis-ci.org/huacnlee/rails-settings-cached) +[![Gem Version](https://badge.fury.io/rb/rails-settings-cached.svg)](https://rubygems.org/gems/rails-settings-cached) [![CI Status](https://api.travis-ci.org/huacnlee/rails-settings-cached.svg)](http://travis-ci.org/huacnlee/rails-settings-cached) [![Code Climate](https://codeclimate.com/github/huacnlee/rails-settings-cached/badges/gpa.svg)](https://codeclimate.com/github/huacnlee/rails-settings-cached) [![codecov.io](https://codecov.io/github/huacnlee/rails-settings-cached/coverage.svg?branch=master)](https://codecov.io/github/huacnlee/rails-settings-cached?branch=master) ## Setup Edit your Gemfile: ```ruby +# Rails 5.0.x +gem 'rails-settings-cached', '~> 0.6.0' +# Rails 4.2.x +gem 'rails-settings-cached', "~> 0.5.4" # Rails 4.1.x gem "rails-settings-cached", "~> 0.4.0" # Rails 4+ gem "rails-settings-cached", "0.3.1" # Rails 3.x @@ -25,18 +29,16 @@ ``` Generate your settings: ```bash -$ rails g settings <settings_name> +$ rails g settings:install ``` -Note: If you migrating from gem `rails-settings` then make sure you have it in your model +If you want custom model name: -```ruby -class Settings < RailsSettings::CachedSettings - ... -end +```bash +$ rails g settings:install MySetting ``` Now just put that migration in the database with: ```bash