aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2014-11-29 01:02:01 +0530
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 15:16:23 -0300
commitb2bb2a462f8950522688e8e0d87a7d32a5863438 (patch)
tree22662ae9961bf565bd7bd3690f262290213fbee3 /activesupport/lib/active_support/core_ext/module
parent33a13c929d0f4d1f7fa84ac99e8ff72e5c8d084e (diff)
downloadrails-b2bb2a462f8950522688e8e0d87a7d32a5863438.tar.gz
rails-b2bb2a462f8950522688e8e0d87a7d32a5863438.tar.bz2
rails-b2bb2a462f8950522688e8e0d87a7d32a5863438.zip
remove files which is dependent on ruby1.9 as we do not support Ruby1.9
Conflicts: activerecord/lib/active_record/attribute_methods/read.rb
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module')
-rw-r--r--activesupport/lib/active_support/core_ext/module/method_transplanting.rb14
1 files changed, 3 insertions, 11 deletions
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.")