globalize2 icon indicating copy to clipboard operation
globalize2 copied to clipboard

Work as a gem

Open pupeno opened this issue 14 years ago • 3 comments

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 avatar Jun 17 '10 11:06 pupeno

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

pupeno avatar Jun 17 '10 11:06 pupeno

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

scambra avatar Jun 17 '10 13:06 scambra

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

pupeno avatar Jun 17 '10 14:06 pupeno