remove update site in gemspec

This commit is contained in:
chiu 2020-04-06 12:00:38 +08:00
parent a44fc98250
commit f04e3b685a
1 changed files with 0 additions and 15 deletions

View File

@ -103,21 +103,6 @@ end
#rescue => e
# puts "Permission denied in #{ENV['PWD']}/app/helpers/application_helper.rb"
#end
begin
require 'mongoid'
require "#{dir_pwd}/app/models/concerns/slug"
require "#{dir_pwd}/app/models/site"
require "#{dir_pwd}/app/uploaders/image_uploader"
include 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 Exception => e
puts e
puts 'unable to close title display in frontend.'
end
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "patchfile"