new mongoid settings for dev/test + fix a potential bug wit the fullpath method

This commit is contained in:
did 2011-08-19 11:47:59 +02:00
parent e9c1c1d98f
commit 0b27cd5d1b
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ class Page
def fullpath_with_building(force = false)
if self.fullpath_without_building.present? && !force
self.fullpath_without_building
return self.fullpath_without_building
end
if self.index? || self.not_found?

View File

@ -9,11 +9,11 @@ defaults: &defaults
development:
<<: *defaults
database: locomotive_dev
database: locomotive_i18n_dev
test:
<<: *defaults
database: locomotive_test
database: locomotive_i18n_test
# set these environment variables on your prod server
production: