X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a83030dab7512c4b2848e777f7a7dbff456774b3..5f5f31ee7ecbc673af2bf21a14e76305d0e8355b:/config/application.rb diff --git a/config/application.rb b/config/application.rb index 9ba122daf..0a137abae 100644 --- a/config/application.rb +++ b/config/application.rb @@ -19,8 +19,9 @@ Bundler.require(*Rails.groups) module OpenStreetMap 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. + # Application configuration can go into files in config/initializers + # -- all .rb files in that directory are automatically loaded after loading + # the framework and any gems in your application. # Custom directories with classes and modules you want to be autoloadable. config.autoload_paths += %W[#{config.root}/lib] @@ -43,8 +44,5 @@ module OpenStreetMap config.logstasher.logger_path = LOGSTASH_PATH config.logstasher.log_controller_parameters = true end - - # Configure image optimisation - config.assets.image_optim = YAML.load_file(Rails.root.join("config", "image_optim.yml")) end end