app/models/concerns/clean_up_methods.rb
def clean_routes_outside_referential
    Chouette::Benchmark.measure 'clean_routes_outside_referential' do
      line_ids = referential.metadatas.pluck(:line_ids).flatten.uniq
      Chouette::Route.where(['line_id not in (?)', line_ids]).clean!
    end
  end
# EXTRA CLEANINGS, SELECTED FROM THE UI
EXTRA CLEANINGS, SELECTED FROM THE UI
EXTRA CLEANINGS SELECTED FROM THE UI
def clean_routes_outside_referential
    Chouette::Benchmark.measure 'clean_routes_outside_referential' do
      line_ids = referential.metadatas.pluck(:line_ids).flatten.uniq
      Chouette::Route.where(['line_id not in (?)', line_ids]).clean!
    end
  end
def clean_routes_outside_referential Chouette :: Benchmark . measure 'clean_routes_outside_referential' do line_ids = referential . metadatas . pluck ( :line_ids ) . flatten . uniq Chouette :: Route . where ( [ 'line_id not in (?)' , line_ids ] ) . clean! end end
EXTRA CLEANINGS, SELECTED FROM THE UI
EXTRA CLEANINGS SELECTED FROM THE UI