提交 34bfca2f 编写于 作者: J Jorge Bejar

We don't need to set config.debug_exception_response_format given that :api is...

We don't need to set config.debug_exception_response_format given that :api is the default value for only API apps
上级 a0343d11
......@@ -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 @@ def test_api_modified_files
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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册