Module: Shared::Observations::ClassMethods

Defined in:
app/models/concerns/shared/observations.rb

Instance Method Summary collapse

Instance Method Details

#recently_observedObject



29
30
31
# File 'app/models/concerns/shared/observations.rb', line 29

def recently_observed
  joins(:observations).where(observations: { updated_at: 1.weeks.ago..Time.now } )
end