Currently "xml_http_request" returns a booleanish value that behaves accordingly when needed but it also breaks the general convention that methods with a "?" postfix should return "true" or "false" values.
# currently request.xml_http_request? # => 0 / nil # new request.xml_http_request? # => true / false PR at https://github.com/rails/rails/pull/23865 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.