README.md in rails_config-0.2.1 vs README.md in rails_config-0.2.2

- old
+ new

@@ -12,17 +12,47 @@ * access config information via convenient object member notation ## Compatibility * Rails 3.0 +* Padrino +* Sinatra For older versions of Rails and other Ruby apps, use [AppConfig](http://github.com/fredwu/app_config). ## Installing on Rails 3 Add this to your `Gemfile`: gem "rails_config" + + +## Installing on Padrino + +Add this to your `Gemfile`: + + gem "rails_config" + +in your app.rb, you'll also need to register RailsConfig + + register RailsConfig + + +## Installing on Sinatra + +Add this to your `Gemfile`: + + gem "rails_config" + +in your app, you'll need to register RailsConfig. You'll also need to give it a root so it can find the config files. + + set :root, File.dirname(__FILE__) + register RailsConfig + +It's also possible to initialize it manually within your configure block if you want to just give it some yml paths to load from. + + RailsConfig.load_and_set_settings("/path/to/yaml1", "/path/to/yaml2", ...) + ## Customizing RailsConfig You may customize the behavior of RailsConfig by generating an initializer file: \ No newline at end of file