aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/form_helpers.md
diff options
context:
space:
mode:
authorutilum <oz@utilum.com>2018-05-20 21:22:03 +0200
committerutilum <oz@utilum.com>2018-05-22 14:38:19 +0200
commit0fcb921a65e615c301450d7820b03473acd53898 (patch)
tree8cf5eea647e937b2576d7c5fb058c4e13b6d2dd9 /guides/source/form_helpers.md
parent6c574ac58993512f975ddaf1f679c5956cc576df (diff)
downloadrails-0fcb921a65e615c301450d7820b03473acd53898.tar.gz
rails-0fcb921a65e615c301450d7820b03473acd53898.tar.bz2
rails-0fcb921a65e615c301450d7820b03473acd53898.zip
Allow Range#=== and Range#cover? on Range
ruby/ruby@989e07c features switching `Range#===` to use internal `r_cover_p` instead of rubyland `include?`. This breaks expected behavior of `ActiveSupport::CoreExt::Range` documented since at least 8b67a02. This patch adds overrides on `Range#cover?` and `Range#===` and places all three in a single module, `CompareWithRange`. *Requiring core_ext/range/include_range now causes a deprecation warnning*
Diffstat (limited to 'guides/source/form_helpers.md')
0 files changed, 0 insertions, 0 deletions