Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Adds self translating methods to translated ActiveRecord models. Example: Given an ActiveRecord model with columns name_en and name_fr, adding ensures_translated_and
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitignore
.rvmrc
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
utf8_translatable.gemspec

README.rdoc

Quick ActiveRecord Extension. Adds self translating methods to translated ActiveRecord models (inspired by github.com/citizencast/acts_as_translatable)

Example: Given an ActiveRecord model with columns name_en and name_fr Adding ensures_translated_and_utf8 to the model will provide a _name method that returns the correct (column) attribute value given current I18n.locale

Rspec : require 'utf8_translatable/spec_support' => provides you with a shares example. To use it simply add it_behaves_like “utf8_translatable” to your ActiveRecord models tests. NB: this shared example only checks if the model is_utf8_translatable? == true.

Something went wrong with that request. Please try again.