From 49637fed70c3cee22646c3f63ebbdc7261c07102 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 15 Jul 2008 18:05:22 +0000 Subject: [PATCH] Move Potlatch configuration to a separate initialiser file. --- config/environment.rb | 7 ------- config/initializers/potlatch.rb | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 config/initializers/potlatch.rb diff --git a/config/environment.rb b/config/environment.rb index 6cf8b261d..e6af619eb 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -74,10 +74,3 @@ Rails::Initializer.run do |config| # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc end - -# This has to be after the above block for some reason (doesnt pull in /lib/osm.rb?) -POTLATCH_PRESETS = Potlatch::Potlatch.get_presets() - -# Use SQL (faster) or Rails (more elegant) for common Potlatch reads -# getway speedup is approximately x2, whichways approximately x7 -POTLATCH_USE_SQL = true diff --git a/config/initializers/potlatch.rb b/config/initializers/potlatch.rb new file mode 100644 index 000000000..880947148 --- /dev/null +++ b/config/initializers/potlatch.rb @@ -0,0 +1,6 @@ +# Load presets +POTLATCH_PRESETS = Potlatch::Potlatch.get_presets() + +# Use SQL (faster) or Rails (more elegant) for common Potlatch reads +# getway speedup is approximately x2, whichways approximately x7 +POTLATCH_USE_SQL = true -- 2.43.2