FEATURE: automatically update site to latest version of assets

if a user neglects to move around the site it will prompt to do so 2 hours in
This commit is contained in:
Sam
2014-01-15 12:07:42 +11:00
parent abe814412e
commit a247389d4e
7 changed files with 35 additions and 16 deletions

View File

@ -37,7 +37,7 @@
Discourse.SiteSettings = PreloadStore.get('siteSettings');
Discourse.Router.map(function() { Discourse.routeBuilder.call(this); });
Discourse.start()
Discourse.set('assetVersion','<%= Rails.application.assets.digest %>');
Discourse.set('assetVersion','<%= Discourse.assets_digest %>');
</script>
<%= javascript_include_tag 'browser-update.js' %>