aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-09-10 03:22:24 +0100
committerFrancis Irving <francis@mysociety.org>2010-09-10 03:22:24 +0100
commitf43f5b0c89be58d3f03cbee0626928c1234d64bc (patch)
tree7c0e90cc7101ec5e68bc30fd3db12d8706df7a41 /app/controllers/general_controller.rb
parent3e8b4ce88786574a82500c8db3c9272b5b070966 (diff)
parent7209feaef2ba0e29af36dd5fb2d55c2e5118ea65 (diff)
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/whatdotheyknow
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 00fcb6bf5..0bea01a6f 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -7,7 +7,13 @@
#
# $Id: general_controller.rb,v 1.57 2009-10-03 10:23:43 francis Exp $
-require 'lib/xmlsimple'
+begin
+ require 'xmlsimple'
+rescue LoadError
+ # Debian maintainers put their xmlsimple in a different location :(
+ require 'lib/xmlsimple'
+end
+
require 'open-uri'
class GeneralController < ApplicationController