You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removing one method call, eg. changing the line to config.action_dispatch.merge! does not produce this behavior. Not sure if this follows a generally accepted “max chained method calls on a single line” guideline which I’m not aware of?
Metadata
Ruby version: 2.6.6p146
@prettier/plugin-ruby or prettier gem version: 1.0.1
Options: All current defaults.
Input
moduleMissiveclassApplication < Rails::Applicationconfig.action_dispatch.rescue_responses.merge!(# We created more threads than RAILS_MAX_THREADS'ActiveRecord::ConnectionTimeoutError'=>:service_unavailable,# Some query hits a timeout'ActiveRecord::QueryCanceled'=>:service_unavailable,# Rack::Timeout'Rack::Timeout::RequestExpiryError'=>:service_unavailable,'Rack::Timeout::RequestTimeoutError'=>:service_unavailable,'Rack::Timeout::RequestTimeoutException'=>:service_unavailable,)endend
Current output
moduleMissiveclassApplication < Rails::Applicationconfig.action_dispatch.rescue_responses.merge!(# We created more threads than RAILS_MAX_THREADS'ActiveRecord::ConnectionTimeoutError'=>:service_unavailable,# Some query hits a timeout'ActiveRecord::QueryCanceled'=>:service_unavailable,# Rack::Timeout'Rack::Timeout::RequestExpiryError'=>:service_unavailable,'Rack::Timeout::RequestTimeoutError'=>:service_unavailable,'Rack::Timeout::RequestTimeoutException'=>:service_unavailable)endend
Expected output
moduleMissiveclassApplication < Rails::Applicationconfig.action_dispatch.rescue_responses.merge!(# We created more threads than RAILS_MAX_THREADS'ActiveRecord::ConnectionTimeoutError'=>:service_unavailable,# Some query hits a timeout'ActiveRecord::QueryCanceled'=>:service_unavailable,# Rack::Timeout'Rack::Timeout::RequestExpiryError'=>:service_unavailable,'Rack::Timeout::RequestTimeoutError'=>:service_unavailable,'Rack::Timeout::RequestTimeoutException'=>:service_unavailable,)endend
The text was updated successfully, but these errors were encountered:
Removing one method call, eg. changing the line to
config.action_dispatch.merge!
does not produce this behavior. Not sure if this follows a generally accepted “max chained method calls on a single line” guideline which I’m not aware of?Metadata
@prettier/plugin-ruby
orprettier
gem version: 1.0.1Input
Current output
Expected output
The text was updated successfully, but these errors were encountered: