aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments
diff options
context:
space:
mode:
authorZog2018-01-03 16:32:55 +0100
committerZog2018-01-08 08:18:57 +0100
commit4b4ec65557606b8fa7617db9397cd663edcbab78 (patch)
treea7bbbe89cf56add8f958db7251e921a06079d56c /config/environments
parent913d6935727ace3ac94c08adb4e1ec378741fb19 (diff)
downloadchouette-core-4b4ec65557606b8fa7617db9397cd663edcbab78.tar.bz2
Refs #5455; Adds a livereload middleware
This allow us to reload the CSS withour reloading the whole page. You'll thank me the day you'll work on React-heavy pages.
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index e9cd16c34..b14ce60fa 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -93,4 +93,6 @@ Rails.application.configure do
config.validation_spec = "http://www.chouette.mobi/neptune-validation/v21/"
config.i18n.available_locales = [:fr, :en]
+
+ config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload)
end