1 require File.expand_path('../boot', __FILE__)
3 require File.expand_path('../preinitializer', __FILE__)
7 # If you have a Gemfile, require the gems listed there, including any gems
8 # you've limited to :test, :development, or :production.
9 Bundler.require(:default, Rails.env) if defined?(Bundler)
12 class Application < Rails::Application
13 # Settings in config/environments/* take precedence over those specified here.
14 # Application configuration should go into files in config/initializers
15 # -- all .rb files in that directory are automatically loaded.
17 # Custom directories with classes and modules you want to be autoloadable.
18 config.autoload_paths += %W(#{config.root}/lib)
20 # Only load the plugins named here, in the order given (default is alphabetical).
21 # :all can be used as a placeholder for all plugins not explicitly named.
22 # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24 # Activate observers that should always be running.
25 config.active_record.observers = :spam_observer
27 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
28 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
29 # config.time_zone = 'Central Time (US & Canada)'
31 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
32 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
33 # config.i18n.default_locale = :de
35 # JavaScript files you want as :defaults (application.js is always included).
36 # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
38 # Configure the default encoding used in templates for Ruby 1.9.
39 config.encoding = "utf-8"
41 # Configure sensitive parameters which will be filtered from the log file.
42 config.filter_parameters += [:password]
44 # Use SQL instead of Active Record's schema dumper when creating the test database.
45 # This is necessary if your schema can't be completely dumped by the schema dumper,
46 # like if you have constraints or database-specific column types
47 config.active_record.schema_format = :sql