README.md in i18n_helper-0.0.3 vs README.md in i18n_helper-0.0.4
- old
+ new
@@ -2,20 +2,38 @@
[![Dependency Status](https://gemnasium.com/joel/i18n_helper.png)](https://gemnasium.com/joel/i18n_helper)
[![Build Status](https://travis-ci.org/joel/i18n_helper.png?branch=master)](https://travis-ci.org/joel/i18n_helper) (Travis CI)
-[![Coverage Status](https://coveralls.io/repos/joel/i18n_helper/badge.png)](https://coveralls.io/r/joel/i18n_helper)
+[![Coverage Status](https://coveralls.io/repos/joel/i18n_helper/badge.png?branch=master)](https://coveralls.io/r/joel/i18n_helper)
[![Gem Version](https://badge.fury.io/rb/i18n_helper.png)](http://badge.fury.io/rb/i18n_helper)
# I18nHelper
This is a really straightforward I18n locales helper. It can you help to change locale web app on the fly.
![Screenshot](https://f.cloud.github.com/assets/5789/1832468/0ad6491c-73b6-11e3-8f14-3358168ed5ff.png)
+# add callbacks
+
+If we need to add or skip some callbacks, often skip authentication you can add a initializer on your mother app
+
+Add `config/initializers/locales.rb`
+
+```
+module LocalesControllerCallbacks
+ extend ActiveSupport::Concern
+
+ included do
+ skip_before_action :authenticate_user!
+ end
+end
+
+LocalesController.send(:include, LocalesControllerCallbacks)
+```
+
## Features
The locale of app is recorded on current session.
## Installation
@@ -54,6 +72,6 @@
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
-5. Create new Pull Request
\ No newline at end of file
+5. Create new Pull Request