Project

General

Profile

« Previous | Next » 

Revision b18c3a35

Added by Ohad Levy over 10 years ago

fixes #3587, #2855 - print an error on invalid json vs 500 error

View differences:

config/application.rb
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
# Catching Invalid JSON Parse Errors with Rack Middleware
config.middleware.insert_before ActionDispatch::ParamsParser, "Middleware::CatchJsonParseErrors"
end
def self.setup_console

Also available in: Unified diff