joshmh / globalize2

The second incarnation of Globalize for Rails
http://www.globalize-rails.org/
MIT License
364 stars 57 forks source link

Work as a gem #34

Open pupeno opened 14 years ago

pupeno commented 14 years ago

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 commented 14 years ago

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

scambra commented 14 years ago

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

pupeno commented 14 years ago

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