This commit is contained in:
BOHUNG 2020-04-01 17:20:43 +08:00
parent b01dd288db
commit cdf4d421c1
1 changed files with 5 additions and 1 deletions

View File

@ -88,10 +88,14 @@ begin
end end
f.close f.close
puts "finish change application_helper.rb in #{ENV['PWD']}/app/helpers/" puts "finish change application_helper.rb in #{ENV['PWD']}/app/helpers/"
Site.first.update(:display_title_in_frontend=>false)
rescue rescue
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
Site.first.update(:display_title_in_frontend=>false)
rescue
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"