From e92572dca2f0e8edab58a9d6a3851dc27d773b04 Mon Sep 17 00:00:00 2001 From: Xinhui Date: Thu, 15 Jun 2017 11:45:15 +0200 Subject: Fix wrong method name on cleanup Refs #3644 --- app/models/clean_up.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/models/clean_up.rb b/app/models/clean_up.rb index 978cc7ecb..a791065aa 100644 --- a/app/models/clean_up.rb +++ b/app/models/clean_up.rb @@ -40,7 +40,7 @@ class CleanUp < ActiveRecord::Base self.destroy_time_tables(time_tables) end - def destroy_time_table_dates_before + def destroy_time_tables_dates_before Chouette::TimeTableDate.in_dates.where('date < ?', self.begin_date).destroy_all end @@ -132,11 +132,11 @@ class CleanUp < ActiveRecord::Base def log_successful message_attributs update_attribute(:ended_at, Time.now) - CleanUpResult.create(destroy_up: self, message_key: :successfull, message_attributs: message_attributs) + CleanUpResult.create(clean_up: self, message_key: :successfull, message_attributs: message_attributs) end def log_failed message_attributs update_attribute(:ended_at, Time.now) - CleanUpResult.create(destroy_up: self, message_key: :failed, message_attributs: message_attributs) + CleanUpResult.create(clean_up: self, message_key: :failed, message_attributs: message_attributs) end end -- cgit v1.2.3