Class: Motor::Alert

Inherits:
ApplicationRecord show all
Defined in:
app/models/motor/alert.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

audited

Instance Method Details

#cronObject


20
21
22
23
# File 'app/models/motor/alert.rb', line 20

def cron
  @cron ||=
    Fugit::Nat.parse("#{preferences[:interval]} #{ActiveSupport::TimeZone::MAPPING[preferences[:timezone]]}")
end