aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/range/include_range.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-05-12 20:49:06 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-05-12 20:49:06 -0700
commit4c0fa443fdaf43e8403b6fc29f6f5a939f764edb (patch)
tree12dda7132cff5c036a59bfcad81c6ca66c037c48 /activesupport/lib/active_support/core_ext/range/include_range.rb
parente81a1a4f07f420bac58d93eef6792051d89c2f4f (diff)
parentb2de3f729496a223d64f9b55192d1b19bda4fc25 (diff)
downloadrails-4c0fa443fdaf43e8403b6fc29f6f5a939f764edb.tar.gz
rails-4c0fa443fdaf43e8403b6fc29f6f5a939f764edb.tar.bz2
rails-4c0fa443fdaf43e8403b6fc29f6f5a939f764edb.zip
Merge pull request #10584 from alindeman/range-missing-alias-attribute
Fixes NoMethodError: `alias_method_chain` when requiring just active_support/core_ext
Diffstat (limited to 'activesupport/lib/active_support/core_ext/range/include_range.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/range/include_range.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/range/include_range.rb b/activesupport/lib/active_support/core_ext/range/include_range.rb
index 3af66aaf2f..3a07401c8a 100644
--- a/activesupport/lib/active_support/core_ext/range/include_range.rb
+++ b/activesupport/lib/active_support/core_ext/range/include_range.rb
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/module/aliasing'
+
class Range
# Extends the default Range#include? to support range comparisons.
# (1..5).include?(1..5) # => true