Doesn't `request.xhr?` cover that?

On Wed, Feb 24, 2016 at 11:27 AM, Lukas Alexandre <[email protected]> wrote:
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to