aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-20 18:33:28 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-20 18:38:20 +0100
commit7ba28d434ceb0401f937e77f19d1c31e2a43f1ac (patch)
treedb7e388916b3fab1862d7eae122293766c1ccf67 /activemodel/lib
parentfb1c06a694b343aa0d5753cb1174ddda3ecfb817 (diff)
downloadrails-7ba28d434ceb0401f937e77f19d1c31e2a43f1ac.tar.gz
rails-7ba28d434ceb0401f937e77f19d1c31e2a43f1ac.tar.bz2
rails-7ba28d434ceb0401f937e77f19d1c31e2a43f1ac.zip
Remove dead code from AMo.
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/test_case.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activemodel/lib/active_model/test_case.rb b/activemodel/lib/active_model/test_case.rb
index 6328807ad7..5004855d56 100644
--- a/activemodel/lib/active_model/test_case.rb
+++ b/activemodel/lib/active_model/test_case.rb
@@ -1,16 +1,4 @@
module ActiveModel #:nodoc:
class TestCase < ActiveSupport::TestCase #:nodoc:
- def with_kcode(kcode)
- if RUBY_VERSION < '1.9'
- orig_kcode, $KCODE = $KCODE, kcode
- begin
- yield
- ensure
- $KCODE = orig_kcode
- end
- else
- yield
- end
- end
end
end