summaryrefslogtreecommitdiff
path: root/sample/cgi-session-pstore.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/cgi-session-pstore.rb')
-rw-r--r--sample/cgi-session-pstore.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/cgi-session-pstore.rb b/sample/cgi-session-pstore.rb
index 99d7d47..ec8b498 100644
--- a/sample/cgi-session-pstore.rb
+++ b/sample/cgi-session-pstore.rb
@@ -1,7 +1,7 @@
require 'cgi'
require 'cgi/session/pstore'
-STDIN.reopen("/dev/null")
+STDIN.reopen(IO::NULL)
cgi = CGI.new
session = CGI::Session.new(cgi, 'database_manager' => CGI::Session::PStore)
session['key'] = {'k' => 'v'}