- Fix load default values from yml when using before Rails initialize; (#147)
- Fix value load from database on Rails initialize; (#144)
-
[Removed]
RailsSettings::CachedSettings
, please useRailsSettings::Base
. -
[Removed]
Setting.save_default
method, use YAML file instead. -
Remove the "cache prefix by startup" behavior, for fix cache reading in multiple startup applications. Please use
cache_prefix { 'v1' }
to change cache prefix when your yml config has updated. For example:class Setting < RailsSettings::Base # when config/app.yml has changed, you need change this prefix to v2, v3 ... cache_prefix { "v1" } source Rails.root.join("config/app.yml") end
- Update migration for Rails migration version support. (#128)
- Return direct value first for existing default keys. (#111)
- Fix defaults merge when get_all. (#110)
- Fix deprecated syntax in the model generator (#107)
- Fix cache key with multiple processes.
- Ensure defaults not overwrite persisted settings (#98) (Kevin Sjöberg)
- Make sure YAML default settings can work when Rails not initialized (in Rails initializes or environments/*.rb)
- Make sure YAML default settings can work when settings table does not exist (For example in Rails initializes).
- Add
config/app.yml
for write you default settings in file. - Change generator command from
rails g settings
torails g settings:install
. - [Deprecated] RailsSettings::CachedSettings, please use RailsSettings::Base.
- [Deprecated] Setting.defaults method, use YAML file instead.
- [Deprecated] Setting.save_default method, use YAML file instead.
- Removed
SettingsDefaults::DEFAULTS
support. - Change cache key prefix after restart Rails application server (This for make sure cache will expire, when you update default config in YAML file).
- If the value was set to false, either the default is returned or if there is no default, then nil would be returned. @dangerous
- Fixed inheritance of RailsSettings::CachedSettings to use RailsSettings::Base.
- Change default g
- [Deprecated] RailsSettings::Settings, please use RailsSettings::Base.
- Update the cached value for the key when value set.
- Return nil if value not present;
- Fixed mistake, when scoped result contains global defaults which not in scope. (Alexander Merkulov)
- Gem spec require Ruby 2.0+; @alexanderadam
- Include defaults in get_all call; @alexanderadam
- Drop Rails 4.1 support.
- Allow setting dynamic cache prefix. So that settings can be arbitrarily scoped based on some context (e.g. current tenant). @artemave
- Fix scoped cache key name.
- Cache db values that does not exist within rails cache.
- Add cached to model scoped settings.
- Fix Rails 4.2.4
after_rollback
/after_commit
depreciation warnings. @miks
- Ruby new hash syntax and do not support Ruby 1.9.2 from now.
- Cache key has changed with
rails_settings_cached
prefix.
- ActiveRecord
table_name_prefix
support; #31
- Rails 4.1.0 compatibility.
- Setting.all -> Setting.get_all
- Enable destroy-ing a key with falsy data; #32
- Require Rails 4.0.0+;
- false value can't got back bug has fixed.
- Fix to work with Rails 4.0.0
- Setting.save_default method to direct write default value in database.
- fix mass-update bug.
- Fix bug with when key has cached a nil value, and then set a default value for that key, the default value can't right return.
- Add auto cache feature to all key visit.