Displaying 1 result from an estimated 1 matches for "enumerationtranslation".
2009 Jan 29
0
How to get rid of an ActiveRecord warning "already initialized constant"
...ecord::Base){..}
..
end
so in my validation module, I can write :
translation_class = Globalize::Model::ActiveRecord.create_proxy_class
(self.class)
no problem when executing it...
but in my model unit tests, I execute it many times, and I get the
warning...
warning: already initialized constant EnumerationTranslation (when
my model class is Enumeration of course)
can I delete this constant in my test setup ? how ?
thanks fyh
erwin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post...