Module: Marty::Cleaner::Logs
- Defined in:
- app/services/marty/cleaner/logs.rb
Class Method Summary collapse
Class Method Details
.call(days) ⇒ Object
5 6 7 8 9 |
# File 'app/services/marty/cleaner/logs.rb', line 5 def call(days) Marty::Log.where( 'timestamp < ?', Time.zone.today - days.to_i.days ).delete_all end |