wblog/config/application.rb

31 lines
981 B
Ruby
Raw Normal View History

2017-04-30 19:48:31 +08:00
require_relative 'boot'
2012-06-23 06:19:03 +08:00
require 'rails/all'
2017-04-30 19:48:31 +08:00
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
2012-06-23 06:19:03 +08:00
module WBlog
class Application < Rails::Application
2017-04-30 19:48:31 +08:00
# 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.i18n.available_locales = [:en, :'zh-CN']
config.i18n.default_locale = (ENV['LOCALE'] || 'zh-CN').to_sym
2014-03-28 21:31:21 +08:00
config.time_zone = 'Beijing'
2017-04-30 19:48:31 +08:00
config.action_controller.action_on_unpermitted_parameters = :log
2014-03-28 21:31:21 +08:00
# generators
config.generators.assets = false
config.generators.helper = false
config.generators do |g|
g.test_framework :rspec, view_specs: false
end
# action mailer
config.action_mailer.preview_path = "#{Rails.root}/spec/mailers/previews"
2012-06-23 06:19:03 +08:00
end
end