class Hostel < ActiveRecord::Base
attr_accessible :name, :address_1...
# Model definition...
has_one :conditions, class_name: 'Hostel::Condition'
has_one :directions, class_name: 'Hostel::Direction'
end
class Hostel::Condition < ActiveRecord::Base
attr_accessible :hostel_id, :es, :pt, :en
# Model definition...
belongs_to :hostel
end
class Hostel::Direction < ActiveRecord::Base
attr_accessible :hostel_id, :es, :pt, :en
# Model definition...
belongs_to :hostel
end
To query a localized field:
conditions = Hostel.find(999).condition.es