Flowdock
method

inclusion_method

Importance_1
v3.2.8 - Show latest stable - 0 notes - Class: ActiveModel::Validations::ExclusionValidator
inclusion_method(enumerable) private

In Ruby 1.9 Range#include? on non-numeric ranges checks all possible values in the range for equality, so it may be slow for large ranges. The new Range#cover? uses the previous logic of comparing a value with the range endpoints.

Show source
Register or log in to add new notes.