README.md in rails-settings-cached-2.4.0 vs README.md in rails-settings-cached-2.4.1
- old
+ new
@@ -1,13 +1,13 @@
# Rails Settings Cached
-This a plugin that makes managing a table of
-а global key, value pairs easy. Think of it like a global Hash stored in your database,
-that uses simple ActiveRecord like methods for manipulation. Keep track of any global
-setting that you don't want to hard code into your rails app. You can store any kind
-of object. Strings, numbers, arrays, or any object.
+The best solution for store global settings in Rails applications.
+This gem will managing a table of а global key, value pairs easy. Think of it like a global Hash stored in your database, that uses simple ActiveRecord like methods for manipulation. Keep track of any global setting that you don't want to hard code into your rails app.
+
+You can store any kind of object. Strings, numbers, arrays, booleans, or any object.
+
[![Gem Version](https://badge.fury.io/rb/rails-settings-cached.svg)](https://rubygems.org/gems/rails-settings-cached) [![CI Status](https://travis-ci.org/huacnlee/rails-settings-cached.svg)](http://travis-ci.org/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)
## Installation
Edit your Gemfile:
@@ -51,11 +51,11 @@
# lambda default value
field :welcome_message, type: :string, default: -> { "welcome to #{self.app_name}" }
end
```
-You must use `field` method to statement the setting keys, otherwise you can't use it.
+You must use the `field` method to statement the setting keys, otherwise you can't use it.
Now just put that migration in the database with:
```bash
$ rails db:migrate
@@ -150,11 +150,11 @@
=> { key: "app_name", type: :string, default: "Rails Settings", readonly: false }
```
## Use Setting in Rails initializing:
-In `version 2.3+` we allows you to use Setting before Rails is initialized.
+In `version 2.3+` you can use Setting before Rails is initialized.
For example `config/initializers/devise.rb`
```rb
Devise.setup do |config|
@@ -347,10 +347,13 @@
- [ruby-china/homeland](https://github.com/ruby-china/homeland) - master
- [forem/forem](https://github.com/forem/forem) - 2.x
- [siwapp/siwapp](https://github.com/siwapp/siwapp) - 2.x
- [aidewoode/black_candy](https://github.com/aidewoode/black_candy) - 2.x
-- [thebluedoc/bluedoc](https://github.com/thebluedoc/bluedoc/blob/master/app/models/setting.rb) - 2.x
+- [huacnlee/bluedoc](https://github.com/huacnlee/bluedoc) - 2.x
+- [getzealot/zealot](https://github.com/getzealot/zealot) - 2.x
+- [kaishuu0123/rebacklogs](https://github.com/kaishuu0123/rebacklogs) - 2.x
- [tootsuite/mastodon](https://github.com/tootsuite/mastodon) - 0.6.x
- [helpyio/helpy](https://github.com/helpyio/helpy) - 0.5.x
+- [daqing/rabel](https://github.com/daqing/rabel) - 0.4.x
And more than [1K repositories](https://github.com/huacnlee/rails-settings-cached/network/dependents) used.