See https://github.com/rails/rails/blob/65b9abf56114b629a3cd3f59f395d20b692bae89/actionpack/lib/abstract_controller/base.rb#L128