Don't eager load models when the database is offline

This commit is contained in:
Tom Hughes 2012-02-04 00:42:47 +00:00
parent b91072bed4
commit 0605d4aa8b

View file

@ -63,5 +63,10 @@ module OpenStreetMap
unless STATUS == :database_offline
config.active_record.schema_format = :sql
end
# Don't eager load models when the database is offline
if STATUS == :database_offline
config.paths["app/models"].skip_eager_load!
end
end
end