Pretty sure this is *not* a general convention that Rails follows. This 
seemed awful familiar, a quick google search brought me 
to: https://github.com/rails/rails/issues/20110#issuecomment-100970600 
(which suggests that this type of issue is raised often).

On Wednesday, February 24, 2016 at 2:48:33 PM UTC-6, Lukas Alexandre 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.

Reply via email to