Class: Motor::Alert
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Motor::Alert
- Defined in:
- app/models/motor/alert.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
Instance Method Details
#cron ⇒ Object
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 |