README.md in app_settings-0.0.2 vs README.md in app_settings-0.0.3

- old
+ new

@@ -33,14 +33,14 @@ gem 'app_settings' ```` You can use the following files to declare your application settings: -* config/application.rb (for all environments) -* config/environemnts/development.rb (for just dev env) -* config/environemnts/test.rb (for just the test env) -* config/environemnts/production.rb (for just the production env) +* config/application.rb (for all environments) +* config/environemnts/development.rb (for just dev env) +* config/environemnts/test.rb (for just the test env) +* config/environemnts/production.rb (for just the production env) The settings will work in the same way that Rails' environment config, where the application.rb is for all environments, but can be overridden by the environment specific files (development.rb, test.rb, production.rb). This is how you'd set your application settings in one or more of those files: @@ -50,12 +50,12 @@ ```` Then, anywhere in your app, you can access those by doing: ```` -Rails.application.config.settings.appname # => 'My Rails Application' -Rails.application.config.settings.company_name # => 'Fancy Pants LLC' +Rails.configuration.settings.appname # => 'My Rails Application' +Rails.configuration.settings.company_name # => 'Fancy Pants LLC' ```` OR ```` @@ -66,7 +66,5 @@ From there, you could put those into the app/controllers/application_controller.rb file and shorten the name and then make it also a helper method. You could also put it into your models as a method or use [Rails' config_accessor](http://api.rubyonrails.org/classes/ActiveSupport/Configurable/ClassMethods.html#method-i-config_accessor). You'll get the benefit of having your app settings all in one place. - -