Class: Effective::NotificationLog
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::NotificationLog
- Defined in:
- app/models/effective/notification_log.rb
Instance Method Summary collapse
Instance Method Details
#days_ago(date: nil) ⇒ Object
29 30 31 32 |
# File 'app/models/effective/notification_log.rb', line 29 def days_ago(date: nil) now = (date || Time.zone.now).to_date (now - (created_at&.to_date || now)).to_i end |
#to_s ⇒ Object
25 26 27 |
# File 'app/models/effective/notification_log.rb', line 25 def to_s model_name.human end |