remove update site in gemspec
This commit is contained in:
parent
a44fc98250
commit
f04e3b685a
|
@ -103,21 +103,6 @@ end
|
||||||
#rescue => e
|
#rescue => e
|
||||||
# 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
|
|
||||||
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:
|
# Describe your gem and declare its dependencies:
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "patchfile"
|
s.name = "patchfile"
|
||||||
|
|
Loading…
Reference in New Issue