diff options
| author | Alban Peignier | 2016-11-20 22:05:38 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2016-11-20 22:10:33 +0100 | 
| commit | 4791486858aeefed6291b55c73228f2728824265 (patch) | |
| tree | 8b9df89bd759a28b4d44c6acc64e829ff2d83ac6 /config/application.rb | |
| parent | 983488065c7e8e30a6dda6cd0fbce9c3fa4c6622 (diff) | |
| download | chouette-core-4791486858aeefed6291b55c73228f2728824265.tar.bz2 | |
Add an observer to manage opposite_route on other routes. Refs #1999
Diffstat (limited to 'config/application.rb')
| -rw-r--r-- | config/application.rb | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/config/application.rb b/config/application.rb index b9076abec..70b927855 100644 --- a/config/application.rb +++ b/config/application.rb @@ -29,6 +29,9 @@ module ChouetteIhm      # Configure Browserify to use babelify to compile ES6      config.browserify_rails.commandline_options = "-t [ babelify --presets [ react es2015 ] ]" + +    config.active_record.observers = :route_observer +      unless Rails.env.production?          # Work around sprockets+teaspoon mismatch:          Rails.application.config.assets.precompile += %w(spec_helper.js) | 
