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

Work as a gem #34

Open
pupeno opened this issue Jun 17, 2010 · 3 comments
Open

Work as a gem #34

pupeno opened this issue Jun 17, 2010 · 3 comments

Comments

@pupeno
Copy link

pupeno commented Jun 17, 2010

Hello,

Can you make it possible and easy/documented to use globalize2 as a gem? Maybe with something like Globalize2.init that one could put in a Rails initializer once the gem has been loaded?

Thanks.

@pupeno
Copy link
Author

pupeno commented Jun 17, 2010

Ok, I've found that just require "globalize" works, that's simple enough. Would you accept a documentation patch?

@scambra
Copy link
Contributor

scambra commented Jun 17, 2010

I use it as a gem and I only add to config/enviroment.rb:
config.gem 'globalize2', :lib => 'globalize'

@pupeno
Copy link
Author

pupeno commented Jun 17, 2010

I forgot the :lib => "globalize", my apologies, I wasn't thinking straight.

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

2 participants