Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Provides proxies for localized columns, depending on the locale set by I18n
Ruby
tree: fe85c219ba

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
README
Rakefile
init.rb

README

TranslatableColumns
===================

Makes proxies for localized columns, depending on the locale set by I18n.

Read the Rdoc for more options.

Example
=======

  class Topic < ActiveRecord::Base
    translatable_columns :title, :body
    validates_translation_of :title
  end
  
  t = Topic.new
  I18n.locale = 'nl-NL'
  t.title # fetches t.title_nl
  I18n.locale = 'de-DE'
  t.title # fetches t.title_de

Copyright (c) 2008 Iain Hecker, released under the MIT license
Something went wrong with that request. Please try again.