Class: ExceptionHunter::Error

Inherits:
ApplicationRecord show all
Defined in:
app/models/exception_hunter/error.rb

Class Method Summary collapse

Class Method Details

.in_current_monthObject



14
15
16
17
18
# File 'app/models/exception_hunter/error.rb', line 14

def self.in_current_month
  current_month = Date.today.beginning_of_month..Date.today.end_of_month

  where(occurred_at: current_month)
end