1require File.expand_path('../boot', __FILE__)
 
2
 
3require 'rails/all'
 
4
 
5# Require the gems listed in Gemfile, including any gems
 
6# you've limited to :test, :development, or :production.
 
7Bundler.require(*Rails.groups)
 
8
 
 9module Workspace
 
10  class Application < Rails::Application
 
11    # Settings in config/environments/* take precedence over those specified here.
 
12    # Application configuration should go into files in config/initializers
 
13    # -- all .rb files in that directory are automatically loaded.
 
 
15    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
 
16    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
 
17    # config.i18n.default_locale = :de
 
 
19    # Do not swallow errors in after_commit/after_rollback callbacks.
 
20    config.active_record.raise_in_transactional_callbacks = true
 
 
22    # 
 
23    config.time_zone = 'Beijing'
 
24    config.active_record.default_timezone = :local
  • remove trailing whitespace » rails_best_practices
 
26    config.generators do |g|
 
27        g.test_framework :rspec,
 
28            fixtures: true,         #
 
29            view_specs: false,      #
 
30            helper_specs: false,    #
 
31            routing_specs: false,   # config/routes.rb 
 
32            controller_specs: true, #controller
 
33            request_specs: false
 
34        g.fixture_replacement :factory_girl, dir: "spec/factories"
 
35    end
 
36  end
 
37end