Skip to content

Commit

Permalink
Merge pull request #18077 from jrafanie/rails_5_1_middleware_use_stri…
Browse files Browse the repository at this point in the history
…ng_vs_constant

Rails 5.1/5.0 compatibility: Use constant since string/symbol was removed
  • Loading branch information
kbrock authored Oct 11, 2018
2 parents a8f357d + d35f1ef commit fd7798e
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 fd7798e

Please sign in to comment.