aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-12-02 23:06:06 +0000
committerFrancis Irving <francis@mysociety.org>2009-12-02 23:06:06 +0000
commit955d8b3b4399b4ed02f28243c83b2b5f1e48f8b9 (patch)
treeaffc8df4cf2251dd7760e6fe9d9334ab25aec349 /lib
parentdfe62a251903f49bc7c1fee68efff1511b12e374 (diff)
Ooops, git error 101 (added these when I made them, rather than
when they were finished being edited)
Diffstat (limited to 'lib')
-rw-r--r--lib/fcgi_fixes.rb25
1 files changed, 5 insertions, 20 deletions
diff --git a/lib/fcgi_fixes.rb b/lib/fcgi_fixes.rb
index b830ded4e..387995a90 100644
--- a/lib/fcgi_fixes.rb
+++ b/lib/fcgi_fixes.rb
@@ -1,25 +1,10 @@
-# Taken from
-# https://rails.lighthouseapp.com/projects/8994/tickets/2946
-# http://github.com/rails/rails/commit/6f97ad07ded847f29159baf71050c63f04282170
+# Changed by mySociety 2008-03-10 to get dynamic FastCGI working.
+# See also http://dev.rubyonrails.org/ticket/5399 - gah!
-# Otherwise times get stored wrong during British Summer Time
+# Hopefully fixed in later Rails. There is a test in spec/libs/fcgi_handler.rb
-# Hopefully fixed in later Rails. There is a test in spec/libs/timezone_fixes.rb
+require 'railties/lib/fcgi_handler.rb'
# Monkeypatch!
-module ActiveRecord
- module ConnectionAdapters # :nodoc:
- module Quoting
- def quoted_date(value)
- value.to_s(:db)
- if value.acts_like?(:time)
- zone_conversion_method = ActiveRecord::Base.default_timezone == :utc ? :getutc : :getlocal
- value.respond_to?(zone_conversion_method) ? value.send(zone_conversion_method) : value
- else
- value
- end.to_s(:db)
- end
- end
- end
-end
+RailsFCGIHandler::SIGNALS['TERM'] = :exit