From b2de3f729496a223d64f9b55192d1b19bda4fc25 Mon Sep 17 00:00:00 2001 From: Andy Lindeman Date: Sun, 12 May 2013 22:43:48 -0400 Subject: Fixes NoMethodError: `alias_method_chain` when requiring just active_support/core_ext * Each file that uses `alias_method_chain` brings it in explicitly --- activesupport/lib/active_support/core_ext/marshal.rb | 2 ++ activesupport/lib/active_support/core_ext/range/include_range.rb | 2 ++ 2 files changed, 4 insertions(+) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/core_ext/marshal.rb b/activesupport/lib/active_support/core_ext/marshal.rb index c7a8348b1d..56c79c04bd 100644 --- a/activesupport/lib/active_support/core_ext/marshal.rb +++ b/activesupport/lib/active_support/core_ext/marshal.rb @@ -1,3 +1,5 @@ +require 'active_support/core_ext/module/aliasing' + module Marshal class << self def load_with_autoloading(source) 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 -- cgit v1.2.3