From b2bb2a462f8950522688e8e0d87a7d32a5863438 Mon Sep 17 00:00:00 2001 From: Kuldeep Aggarwal Date: Sat, 29 Nov 2014 01:02:01 +0530 Subject: remove files which is dependent on ruby1.9 as we do not support Ruby1.9 Conflicts: activerecord/lib/active_record/attribute_methods/read.rb --- .../active_support/core_ext/module/method_transplanting.rb | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'activesupport/lib/active_support/core_ext/module') diff --git a/activesupport/lib/active_support/core_ext/module/method_transplanting.rb b/activesupport/lib/active_support/core_ext/module/method_transplanting.rb index b1097cc83b..1fde3db070 100644 --- a/activesupport/lib/active_support/core_ext/module/method_transplanting.rb +++ b/activesupport/lib/active_support/core_ext/module/method_transplanting.rb @@ -1,11 +1,3 @@ -class Module - ### - # TODO: remove this after 1.9 support is dropped - def methods_transplantable? # :nodoc: - x = Module.new { def foo; end } - Module.new { define_method :bar, x.instance_method(:foo) } - true - rescue TypeError - false - end -end +require 'active_support/deprecation' + +ActiveSupport::Deprecation.warn("This file is deprecated and will be removed in Rails 5.1 with no replacement.") -- cgit v1.2.3