diff options
| author | hukl <contact@smyck.org> | 2010-01-14 22:21:43 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2010-01-14 22:21:43 +0100 |
| commit | 57d1382013c85a7b11ac8ce5e683f6006b12b328 (patch) | |
| tree | 19646c4fa5952fa1cf0a2c874952affa346373f1 /vendor/plugins/globalize2/init.rb | |
| parent | 1b86bf5f2e35d1820bfa32d979bcc2d9ff9a9a8e (diff) | |
Updated globalize2 to latest version. Modified existing code accoringly
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 | |||
