public
Fork of joshmh/globalize2
Description: The second incarnation of Globalize for Rails
Homepage: http://www.globalize-rails.org/
Clone URL: git://github.com/hchoroomi/globalize2.git
globalize2 / init.rb
100644 11 lines (6 sloc) 0.357 kb
1
2
3
4
5
6
7
8
9
10
11
require 'rails_edge_load_path_patch.rb' unless I18n.respond_to?(:load_path)
 
ActiveRecord::Base.send :include, Globalize::Model::ActiveRecord::Translated
 
I18n.backend = Globalize::Backend::Db.new
 
I18n.load_path = Globalize::LoadPath.new I18n.load_path
I18n.load_path << "#{File.dirname(__FILE__)}/lib/locale"
I18n.load_path << "#{RAILS_ROOT}/lib/locale"