Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails 2.3.8 bug #9

Open
guyshmuely opened this issue Jun 5, 2010 · 7 comments
Open

rails 2.3.8 bug #9

guyshmuely opened this issue Jun 5, 2010 · 7 comments

Comments

@guyshmuely
Copy link

I18n defines a Locale module,
This messes up the access to the plugin's Locale Class...
All the methods the are called from the Database instance like available_locales fails because they are trying to reach Locale module instead of the Locale class

@dylanz
Copy link
Owner

dylanz commented Jun 8, 2010

Hello! Is this a new addition to the I18n implementation? I haven't run this gem against the 2.3.8 yet, so it would be great to know. Is it something you could simply add name-spacing too, or reference directly (::)?

@guyshmuely
Copy link
Author

yes i am referring to the new I18n implementation, this problem could easily be fixed by changing the Locale class name and than the plugin works like a charm.
The thing is that it still doesn't support Chaining which is really nice and probably some other cool stuff the new I18n offers... i think that if your plugin could use the built-in I18n ActiveRecord's backend (I18n::Backend::ActiveRecord) as the gate to the database and extend it with all the cool features your plugin offers it will be great, i assume that if you implement it this way it will work with all I18n features and support rails 3 once it's released.

@fusco
Copy link

fusco commented Aug 2, 2010

@uyshmuely, I have the same issue, but i don't understand your "path". Can you explain your change ? thks.

@guyshmuely
Copy link
Author

which issue are you referring to? Chaining or the Locale module problem?

@mossadumc
Copy link

I'm seeing this in 2.3.5 as well.

@karuna
Copy link

karuna commented Oct 28, 2010

The problem I18n::Backend::Database refer Locale from I18n::Locale
While it should refer Locale from ActiveRecord::Base::Locale

@rwygand
Copy link

rwygand commented Aug 1, 2011

I've also seen this issue, which I fixed by changing a lot of references in database.rb to the above mentioned ActiveRecord::Base::Locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants