Skip to content

Commit

Permalink
Default to upload action in test environment
Browse files Browse the repository at this point in the history
Test environment should pretend to behave like production,
not development.
  • Loading branch information
byroot committed Sep 3, 2024
1 parent 6cec5eb commit 567687d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app_profiler/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Railtie < Rails::Railtie
private

def default_middleware_action
if Rails.env.development? || Rails.env.test?
if Rails.env.development?
Middleware::ViewAction
else
Middleware::UploadAction
Expand Down

0 comments on commit 567687d

Please sign in to comment.