fix error
This commit is contained in:
parent
a956c4dca7
commit
98d56b3d05
|
@ -104,13 +104,15 @@ end
|
|||
# puts "Permission denied in #{ENV['PWD']}/app/helpers/application_helper.rb"
|
||||
#end
|
||||
begin
|
||||
require 'mongoid'
|
||||
require "#{dir_pwd}/app/models/site"
|
||||
site_first = Site.first
|
||||
if site_first[:display_title_in_frontend].nil?
|
||||
puts 'close display double title in frontend'
|
||||
site_first.update_attributes(:display_title_in_frontend=>false)
|
||||
end
|
||||
rescue ScriptError => e
|
||||
rescue Exception => e
|
||||
puts e
|
||||
puts 'unable to close title display in frontend.'
|
||||
end
|
||||
# Describe your gem and declare its dependencies:
|
||||
|
|
Loading…
Reference in New Issue