2010-05-14 15:12:31 -07:00
|
|
|
require File.expand_path('../boot', __FILE__)
|
|
|
|
|
|
|
|
require 'rails/all'
|
|
|
|
|
2023-07-21 19:39:32 -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.
|
2023-07-21 19:39:32 -07:00
|
|
|
Bundler.require(*Rails.groups)
|
2010-05-14 15:12:31 -07:00
|
|
|
|
|
|
|
module OpenneoImpressItems
|
|
|
|
class Application < Rails::Application
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
|
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
|
|
# config.time_zone = 'Central Time (US & Canada)'
|
|
|
|
|
|
|
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
|
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
|
|
# config.i18n.default_locale = :de
|
2013-01-11 13:26:07 -08:00
|
|
|
config.i18n.fallbacks = true
|
2010-05-14 15:12:31 -07:00
|
|
|
|
2011-08-02 17:01:48 -07:00
|
|
|
Mime::Type.register "image/gif", :gif
|
2013-02-24 22:14:45 -08:00
|
|
|
|
|
|
|
ActionController::Base.config.relative_url_root = ''
|
2013-03-05 18:08:57 -08:00
|
|
|
|
|
|
|
config.assets.enabled = true
|
|
|
|
config.assets.version = '1.0'
|
|
|
|
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
2013-03-05 20:26:14 -08:00
|
|
|
config.assets.precompile << '*.js'
|
2013-03-05 19:52:31 -08:00
|
|
|
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
|
2011-08-02 17:01:48 -07:00
|
|
|
|