README.md in rails-settings-cached-0.4.6 vs README.md in rails-settings-cached-0.5.0

- old
+ new

@@ -147,11 +147,11 @@ # Rails 3.x and 4.0.x user.settings.all # { "color" => :red } ``` -I you want to find users having or not having some settings, there are named scopes for this: +If you want to find users having or not having some settings, there are named scopes for this: ```ruby User.with_settings # => returns a scope of users having any setting @@ -161,9 +161,18 @@ User.without_settings # returns a scope of users having no setting at all (means user.settings.get_all == {}) User.without_settings('color') # returns a scope of users having no 'color' setting (means user.settings.color == nil) +``` + +Settings maybe dynamically scoped. For example, if you're using [apartment gem](https://github.com/influitive/apartment) for multitenancy, you may not want tenants to share settings: + +```ruby +class Settings < RailsSettings::CachedSettings + cache_prefix { Apartment::Tenant.current } + ... +end ``` ----- ## How to create a list, form to manage Settings?