1
0
Fork 0
forked from OpenNeo/impress
impress/config/application.rb

43 lines
1.4 KiB
Ruby
Raw Normal View History

require_relative "boot"
2010-05-14 15:12:31 -07:00
require "rails/all"
2010-05-14 15:12:31 -07:00
# Require the gems listed in Gemfile, including any gems
2010-05-14 15:12:31 -07:00
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
2010-05-14 15:12:31 -07:00
module OpenneoImpressItems
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.1
# Please, add to the `ignore` list any other `lib` subdirectories that do
# not contain `.rb` files, or that should not be reloaded or eager loaded.
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w(assets tasks))
2010-05-14 15:12:31 -07:00
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files
# in config/environments, which are processed later.
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
2010-05-14 15:12:31 -07:00
2013-01-11 13:26:07 -08:00
config.i18n.fallbacks = true
2010-05-14 15:12:31 -07:00
Mime::Type.register "image/gif", :gif
2013-02-24 22:14:45 -08:00
ActionController::Base.config.relative_url_root = ''
config.assets.enabled = true
config.assets.version = '1.0'
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.assets.precompile << '*.js'
config.assets.initialize_on_precompile = false
2013-07-02 14:10:01 -07:00
config.middleware.insert_after ActionDispatch::Flash, Rack::Attack
2010-05-14 15:12:31 -07:00
end
end