aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/range/each.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow `Range#include?` on TWZ rangesAndrew White2017-11-081-1/+3
| | | | | | | | | | | In #11474 we prevented TWZ ranges being iterated over which matched Ruby's handling of Time ranges and as a consequence `include?` stopped working with both Time ranges and TWZ ranges. However in ruby/ruby@b061634 support was added for `include?` to use `cover?` for 'linear' objects. Since we have no way of making Ruby consider TWZ instances as 'linear' we have to override `Range#include?`. Fixes #30799.
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Use #prepend rather than using 2 aliasesYuki Nishijima2015-04-141-22/+16
|
* Deprecate alias_method_chain in favour of Module#prependKir Shatrov2015-03-221-4/+8
| | | …as discussed #19413
* Fix iterating over DateTime by doing strict checking for Time objectsPrathamesh Sonpatki2014-01-111-2/+1
| | | | - Fixes #13667
* Disable ability to iterate over a Range of TimeWithZoneBogdan Gusiev2013-07-191-0/+24