README.md in traco-5.0.0 vs README.md in traco-5.1.0

- old
+ new

@@ -1,10 +1,10 @@ # Traco -[![Build Status](https://secure.travis-ci.org/barsoom/traco.png)](http://travis-ci.org/barsoom/traco) +[![Build Status](https://secure.travis-ci.org/barsoom/traco.svg)](http://travis-ci.org/barsoom/traco) -Translatable attributes for Ruby on Rails, stored in the model table itself. +Translatable attributes for Ruby on Rails 4.2+, stored in the model table itself. Inspired by Iain Hecker's [translatable_columns](https://github.com/iain/translatable_columns/). To store translations outside the model, see Sven Fuchs' [Globalize](https://github.com/globalize/globalize). @@ -95,9 +95,11 @@ You can specify e.g. `translates :title, fallback: false` to never fall back and instead return `nil`. You can specify e.g. `translates :title, fallback: :any` to fall back first to the default locale, then to any other locale. You can specify e.g. `translates :title, fallback: [:sv]` to explicitly declare fallbacks as an array of any length. + +You can specify e.g. `translates :title, fallback: :i18n` to use the fallbacks from `I18n.fallbacks`. You can override the default fallback strategy with a parameter passed to the reader: `post.title(fallback: :any)`. If you need to declare the default locale fallback, do `post.title(fallback: :default)`.