# config.i18n.default_locale = :de
# Do not swallow errors in after_commit/after_rollback callbacks.
- config.active_record.raise_in_transactional_callbacks = true
+ config.active_record.raise_in_transactional_callbacks = true unless STATUS == :database_offline
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib)
# Don't eager load models when the database is offline
config.paths["app/models"].skip_eager_load! if STATUS == :database_offline
+
+ # Use memcached for caching if required
+ if defined?(MEMCACHE_SERVERS)
+ config.cache_store = :mem_cache_store, MEMCACHE_SERVERS, { :namespace => "rails:cache" }
+ end
end
end