Skip to content

Commit

Permalink
Use constant since string/symbol was removed
Browse files Browse the repository at this point in the history
For fun, autoload doesn't work in application.rb, so you have to either
do it in an config/initializers or require the file.

rails/rails@83b767ce
Rails issue: #25525

Extracted from ManageIQ#18076
  • Loading branch information
jrafanie committed Oct 10, 2018
1 parent 4995683 commit cd7324e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class Application < Rails::Application

config.autoload_once_paths << Rails.root.join("lib", "vmdb", "console_methods.rb").to_s

config.middleware.use 'RequestStartedOnMiddleware'
require_relative '../lib/request_started_on_middleware'
config.middleware.use RequestStartedOnMiddleware

# config.eager_load_paths accepts an array of paths from which Rails will eager load on boot if cache classes is enabled.
# Defaults to every folder in the app directory of the application.
Expand Down

0 comments on commit cd7324e

Please sign in to comment.