diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-07-31 16:39:48 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-31 16:39:48 -0500 |
commit | 0b9bfbdebf402f4a149359a069dbeb05ea989b14 (patch) | |
tree | dfadf0b8f1048d55eb987be62a2f449a0fca268a /actionpack/lib/action_controller/session | |
parent | 656f0e7c6c9a305abaf9f9b7fb80479b6f94efce (diff) | |
download | rails-0b9bfbdebf402f4a149359a069dbeb05ea989b14.tar.gz rails-0b9bfbdebf402f4a149359a069dbeb05ea989b14.tar.bz2 rails-0b9bfbdebf402f4a149359a069dbeb05ea989b14.zip |
Use "/usr/bin/env ruby" instead of "/usr/local/bin/ruby"
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_controller/session')
-rwxr-xr-x | actionpack/lib/action_controller/session/drb_server.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/session/drb_server.rb b/actionpack/lib/action_controller/session/drb_server.rb index 6f90db6747..2caa27f62a 100755 --- a/actionpack/lib/action_controller/session/drb_server.rb +++ b/actionpack/lib/action_controller/session/drb_server.rb @@ -1,8 +1,8 @@ -#!/usr/local/bin/ruby -w - -# This is a really simple session storage daemon, basically just a hash, +#!/usr/bin/env ruby + +# This is a really simple session storage daemon, basically just a hash, # which is enabled for DRb access. - + require 'drb' session_hash = Hash.new @@ -14,13 +14,13 @@ class <<session_hash super(key, value) end end - + def [](key) @mutex.synchronize do super(key) end end - + def delete(key) @mutex.synchronize do super(key) @@ -29,4 +29,4 @@ class <<session_hash end DRb.start_service('druby://127.0.0.1:9192', session_hash) -DRb.thread.join
\ No newline at end of file +DRb.thread.join |