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"
|
# puts "Permission denied in #{ENV['PWD']}/app/helpers/application_helper.rb"
|
||||||
#end
|
#end
|
||||||
begin
|
begin
|
||||||
|
require 'mongoid'
|
||||||
require "#{dir_pwd}/app/models/site"
|
require "#{dir_pwd}/app/models/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'
|
||||||
site_first.update_attributes(:display_title_in_frontend=>false)
|
site_first.update_attributes(:display_title_in_frontend=>false)
|
||||||
end
|
end
|
||||||
rescue ScriptError => e
|
rescue Exception => e
|
||||||
|
puts e
|
||||||
puts 'unable to close title display in frontend.'
|
puts 'unable to close title display in frontend.'
|
||||||
end
|
end
|
||||||
# Describe your gem and declare its dependencies:
|
# Describe your gem and declare its dependencies:
|
||||||
|
|
Loading…
Reference in New Issue