aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-06-15 13:53:29 +0200
committerTeddy Wing2017-06-15 13:53:29 +0200
commit5897637c559ba3d37e4f02b97149ff7dab927ef2 (patch)
tree9797cdcd3dc214a8cc710a392e1e668c1bb19065
parentd79a0db0301d14e0ab4e5ecb2d8b60560f4490a9 (diff)
parente92572dca2f0e8edab58a9d6a3851dc27d773b04 (diff)
downloadchouette-core-5897637c559ba3d37e4f02b97149ff7dab927ef2.tar.bz2
Merge remote-tracking branch 'origin/master' into 3479-refactor-table_builder-helper
-rw-r--r--app/models/clean_up.rb6
1 files changed, 3 insertions, 3 deletions
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