README.rdoc in rails_locale_detection-1.0.0 vs README.rdoc in rails_locale_detection-1.1.0
- old
+ new
@@ -21,10 +21,19 @@
class ApplicationController < ActionController::Base
before_filter :set_locale
end
+== Configuration
+
+There are two configuration options:
+
+ Rails::LocaleDetection.config do |config|
+ config.locale_expiry = 3.months # This sets how long the locale cookie lasts.
+ config.set_default_url_option = true # sets the default_url_options[:locale] to the current locale when set_locale is called
+ end
+
== Contributing to rails_locale_detection
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
@@ -33,8 +42,8 @@
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
== Copyright
-Copyright (c) 2011 Mateo Murphy. See LICENSE.txt for
+Copyright (c) 2012 Mateo Murphy. See LICENSE.txt for
further details.