new mongoid settings for dev/test + fix a potential bug wit the fullpath method
This commit is contained in:
parent
e9c1c1d98f
commit
0b27cd5d1b
@ -69,7 +69,7 @@ class Page
|
|||||||
|
|
||||||
def fullpath_with_building(force = false)
|
def fullpath_with_building(force = false)
|
||||||
if self.fullpath_without_building.present? && !force
|
if self.fullpath_without_building.present? && !force
|
||||||
self.fullpath_without_building
|
return self.fullpath_without_building
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.index? || self.not_found?
|
if self.index? || self.not_found?
|
||||||
|
@ -9,11 +9,11 @@ defaults: &defaults
|
|||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
database: locomotive_dev
|
database: locomotive_i18n_dev
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
database: locomotive_test
|
database: locomotive_i18n_test
|
||||||
|
|
||||||
# set these environment variables on your prod server
|
# set these environment variables on your prod server
|
||||||
production:
|
production:
|
||||||
|
Loading…
Reference in New Issue
Block a user