diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-03 13:14:15 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-03 13:14:15 +0000 |
commit | b42df729cda233a8022a303f8124ee6ac59b4810 (patch) | |
tree | 09763a30cb85b02327ddfcf91e4a5a12ed1e42e4 /config/environment.rb | |
parent | 04b8a72931d176caab599abda8d5445d679a43c5 (diff) |
Move error deletion monkeypatch into lib
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/config/environment.rb b/config/environment.rb index 3da236c13..9da796977 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -90,15 +90,6 @@ if (MySociety::Config.get("DOMAIN", "") != "") ActionController::Base.asset_host = MySociety::Config.get("DOMAIN", 'localhost:3000') end -# Monkeypatch! Method to remove individual error messages from an ActiveRecord. -module ActiveRecord - class Errors - def delete(key) - @errors.delete(key) - end - end -end - # Monkeypatch! Hack for admin pages, when proxied via https on mySociety servers, they # need a relative URL. module WillPaginate @@ -124,6 +115,7 @@ require 'timezone_fixes.rb' require 'fcgi_fixes.rb' require 'use_spans_for_errors.rb' require 'make_html_4_compliant.rb' +#require 'activerecord_errors_extensions.rb' # XXX temp debug for SQL logging production sites #ActiveRecord::Base.logger = Logger.new(STDOUT) |