Module: Shared::Observations::ClassMethods

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) recently_observed



17
18
19
# File 'app/models/concerns/shared/observations.rb', line 17

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