Browse files

readme updated

  • Loading branch information...
1 parent 34e7ebd commit 47828c77af0d039b1f651c9c2e403f5085295cb5 Mateusz Konikowski committed Oct 19, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 README.rdoc
11 README.rdoc
@@ -146,7 +146,7 @@ Finally, you can reload all your settings later as well:
This is useful if you want to support changing your settings YAML without restarting your app.
-== Array of source files (Santuxus change)
+== [new] Array of source files
This change allows you to set multiple source files. The main purpose behind adding it was to avoid the huge size of
application.yml. Now you can simply have 'defaults.yml', 'production.yml', 'development.yml' and so on. In your class
@@ -157,8 +157,13 @@ you can have something like:
Sources are merged in the same order as they are positioned in the array; later settings overwrite earlier ones.
-This solution is somehow equivalent to namespaces, but allows to separate source in different files (thus namespaces
-don't provide any advantage here).
+Deep merge is used, so settings will be merged on all levels.
+== [new] Adding settings in the runtime
+It is possible to add additional settings (hash, path_to_file or array_of_paths) by using Settings.load_source().
+This can be useful for example in case of a lib that needs settings. Lib can be loaded with its own settings which
+can be later extended by part of application ones.
== Author

0 comments on commit 47828c7

Please sign in to comment.