Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
/ bang_bang_xhr Public archive

For guys that like for `request.xhr?` to return `true` or `false` in a rails application.

License

Notifications You must be signed in to change notification settings

miry/bang_bang_xhr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BangBangXhr

It was a big discussion about using request.xhr? to return boolean values instead of 0 or nil. You can read about rails/rails#5329 and https://github.com/rails/rails/commit/3756a3fdfe8d339a53bf347487342f93fd9e1edb. This gem is for these guys that want to be clear to use boolean values.

For Rails core team, don't pay attention to this gem, it just for fun.

Installation

Add this line to your application's Gemfile:

gem 'bang_bang_xhr'

And then execute:

$ bundle

Usage

request.xhr? # => true or false

Bitdeli Badge

About

For guys that like for `request.xhr?` to return `true` or `false` in a rails application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages