forked from pluosi/app-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.rb
37 lines (26 loc) · 996 Bytes
/
application.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
30
31
32
33
34
35
36
37
require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module AppHost
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.1
config.time_zone = 'Beijing'
config.i18n.default_locale = "zh-CN"
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
config.eager_load_paths += %W( #{config.root}/lib/parsers #{config.root}/lib #{config.root}/lib/app_host )
config.autoload_paths += %W( #{config.root}/lib )
config.action_mailer.default_url_options = { :host => Settings.HOST }
end
end
module AppHost
class << self
def version
"0.1.1"
end
end
end