diff options
| author | cedricnjanga | 2017-12-05 17:13:52 +0100 | 
|---|---|---|
| committer | cedricnjanga | 2017-12-05 17:13:52 +0100 | 
| commit | b0bf768dfc1b977bcc758ba974cdd1494d7bab56 (patch) | |
| tree | 8b49662bcbde0830c86999756f08354c6643dbc7 | |
| parent | c6eacdc3166983e297c016d58e4cea8d9a06de5e (diff) | |
| download | chouette-core-b0bf768dfc1b977bcc758ba974cdd1494d7bab56.tar.bz2 | |
- Comment parent.child_change call in ComplianceCheckSet#notify_parent to avoid errors
- Clean new routes (we dont need aliases)
| -rw-r--r-- | app/models/compliance_check_set.rb | 2 | ||||
| -rw-r--r-- | config/routes.rb | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/app/models/compliance_check_set.rb b/app/models/compliance_check_set.rb index 4e14b054f..7c55561af 100644 --- a/app/models/compliance_check_set.rb +++ b/app/models/compliance_check_set.rb @@ -21,7 +21,7 @@ class ComplianceCheckSet < ActiveRecord::Base    def notify_parent      if parent -      parent.child_change +      # parent.child_change        update(notified_parent_at: DateTime.now)      else        errors.add(:base, I18n.t('compliance_check_sets.errors.no_parent')) diff --git a/config/routes.rb b/config/routes.rb index d6ff21bee..65fa62557 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -65,8 +65,8 @@ ChouetteIhm::Application.routes.draw do        resources :time_tables, only: [:index, :show]        resources :vehicle_journeys, only: :show        namespace :internals do -        get 'compliance_check_sets/:id/notify_parent', to: 'compliance_check_sets#notify_parent', as: 'compliance_check_sets' -        get 'netex_imports/:id/notify_parent', to: 'netex_imports#notify_parent', as: 'netex_imports' +        get 'compliance_check_sets/:id/notify_parent', to: 'compliance_check_sets#notify_parent' +        get 'netex_imports/:id/notify_parent', to: 'netex_imports#notify_parent'        end      end    end | 
