forked from yannlugrin/globalize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
29 lines (25 loc) · 1 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'pathname'
require 'singleton'
root_path = directory # this is set in the initializer that calls init.rb
ml_lib_path = "#{root_path}/lib/globalize"
# Load globalize libs
require "globalize/localization/db_view_translator"
require "globalize/localization/rfc_3066"
require "globalize/localization/locale"
require "globalize/localization/supported_locales"
require "globalize/localization/db_translate"
require "globalize/localization/core_ext"
require "globalize/localization/core_ext_hooks"
# Load plugin models
require "globalize/models/translation"
require "globalize/models/model_translation"
require "globalize/models/view_translation"
require "globalize/models/language"
require "globalize/models/country"
require "globalize/models/currency"
# Load overriden Rails modules
require "globalize/rails/active_record"
require "globalize/rails/action_view"
require "globalize/rails/action_mailer"
require "globalize/rails/date_helper"
require "globalize/rails/active_record_helper"