fix manual sitemap updates on ruby 1.9
This commit is contained in:
parent
3e1814e046
commit
8de087ec65
|
@ -106,7 +106,7 @@ module Middleman::CoreExtensions::FileWatcher
|
|||
relative_path = path.sub("#{self.instance.root}/", "")
|
||||
subset.delete(relative_path) if subset.include?(relative_path)
|
||||
self.did_change(relative_path)
|
||||
end
|
||||
end if File.exists?(path)
|
||||
|
||||
subset.each do |removed_path|
|
||||
self.did_delete(removed_path)
|
||||
|
|
Loading…
Reference in a new issue