correct live reload code

This commit is contained in:
Sam
2014-12-23 13:03:35 +11:00
parent 5b844f5320
commit f6f50ffc72
2 changed files with 3 additions and 3 deletions

View File

@ -35,6 +35,7 @@ class SiteCustomization < ActiveRecord::Base
remove_from_cache!
if stylesheet_changed? || mobile_stylesheet_changed?
MessageBus.publish "/file-change/#{key}", SecureRandom.hex
MessageBus.publish "/file-change/#{SiteCustomization::ENABLED_KEY}", SecureRandom.hex
end
MessageBus.publish "/header-change/#{key}", header if header_changed?
MessageBus.publish "/footer-change/#{key}", footer if footer_changed?