mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
We don't need to set config.debug_exception_response_format given that :api is the default value for only API apps
This commit is contained in:
parent
a0343d11f1
commit
34bfca2fee
2 changed files with 0 additions and 10 deletions
|
@ -23,12 +23,6 @@ Rails.application.configure do
|
|||
config.action_controller.perform_caching = false
|
||||
config.cache_store = :null_store
|
||||
end
|
||||
<%- if options[:api] -%>
|
||||
|
||||
# Return error responses in the format requested by the client
|
||||
# or default to JSON format.
|
||||
config.debug_exception_response_format = :api
|
||||
<%- end -%>
|
||||
<%- unless options.skip_action_mailer? -%>
|
||||
|
||||
# Don't care if the mailer can't send.
|
||||
|
|
|
@ -48,10 +48,6 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
|
|||
assert_match(/config.api_only = true/, content)
|
||||
end
|
||||
|
||||
assert_file "config/environments/development.rb" do |content|
|
||||
assert_match(/config.debug_exception_response_format = :api/, content)
|
||||
end
|
||||
|
||||
assert_file "config/initializers/cors.rb"
|
||||
|
||||
assert_file "config/initializers/wrap_parameters.rb"
|
||||
|
|
Loading…
Reference in a new issue