Please sign in to comment.
Check for the existence of the proxy class because it might exist al…
…ready. Due to rails lazy class loading using const_missing I try to load the proxy class, if that fails I create a new one. After that, append the globalize methods to the class. I did not find a way to reproduce this error with a unit test. So here is how you can reproduce this: 1. Have a model that needs translation (e.g Tag) 2. Create a TagTranslation model and add a custom method to it (e.g slugname) 3. ruby script/console 4. Tag.new (Tag class is loaded and proxy class is being created) 5. TagTranslation.new.respond_to?(:slugname) => false but should be true
- Loading branch information...
Showing with 15 additions and 4 deletions.