try fix error

This commit is contained in:
chiu 2020-04-06 11:10:16 +08:00
parent 56a7dea299
commit 36c8e5192e
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ begin
require 'mongoid' require 'mongoid'
require "#{dir_pwd}/app/models/concerns/slug" require "#{dir_pwd}/app/models/concerns/slug"
require "#{dir_pwd}/app/models/site" require "#{dir_pwd}/app/models/site"
include Site
site_first = Site.first site_first = Site.first
if site_first[:display_title_in_frontend].nil? if site_first[:display_title_in_frontend].nil?
puts 'close display double title in frontend' puts 'close display double title in frontend'