ai/r18n — Issue #45: R18n::Translated does not work with Rails and DataMapper
Author: apocalyptiq
Created: 2011-10-28 19:56:00+00:00
State: open

I'm using DataMapper in my Rails app, and I have the following model:

require 'r18n-core/translated'

class Article
include DataMapper::Resource

property :id, Serial

property :title_en, String
property :title_pl, String

property :body_en, Text
property :body_pl, Text

include R18n::Translated
translations :title
translations :body
end

and when i'm trying to do anything with that model, it throws the following error:

uninitialized constant R18n::Translated::Base::ActiveRecord