Rails 2.1 RC1
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
This commit is contained in:
parent
14afed5893
commit
5292899c9a
971 changed files with 46318 additions and 17450 deletions
12
vendor/rails/actionpack/test/testing_sandbox.rb
vendored
12
vendor/rails/actionpack/test/testing_sandbox.rb
vendored
|
@ -1,11 +1,15 @@
|
|||
module TestingSandbox
|
||||
# Temporarily replaces KCODE for the block
|
||||
def with_kcode(kcode)
|
||||
old_kcode, $KCODE = $KCODE, kcode
|
||||
begin
|
||||
if RUBY_VERSION < '1.9'
|
||||
old_kcode, $KCODE = $KCODE, kcode
|
||||
begin
|
||||
yield
|
||||
ensure
|
||||
$KCODE = old_kcode
|
||||
end
|
||||
else
|
||||
yield
|
||||
ensure
|
||||
$KCODE = old_kcode
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue