diff options
Diffstat (limited to 'vendor/plugins/globalize2/init.rb')
| -rw-r--r-- | vendor/plugins/globalize2/init.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/vendor/plugins/globalize2/init.rb b/vendor/plugins/globalize2/init.rb index 7b5428ec..a4089251 100644 --- a/vendor/plugins/globalize2/init.rb +++ b/vendor/plugins/globalize2/init.rb | |||
| @@ -1,10 +1 @@ | |||
| 1 | require 'rails_edge_load_path_patch.rb' unless I18n.respond_to?(:load_path) | require 'globalize' | |
| 2 | |||
| 3 | ActiveRecord::Base.send :include, Globalize::Model::ActiveRecord::Translated | ||
| 4 | |||
| 5 | I18n.backend = Globalize::Backend::Static.new | ||
| 6 | |||
| 7 | I18n.load_path = Globalize::LoadPath.new I18n.load_path | ||
| 8 | I18n.load_path << "#{File.dirname(__FILE__)}/lib/locale" | ||
| 9 | I18n.load_path << "#{RAILS_ROOT}/lib/locale" | ||
| 10 | |||
