HabitatMap/AirCasting

View on GitHub
app/repositories/fixed_sessions_repository.rb

Summary

Maintainability
A
0 mins
Test Coverage
class FixedSessionsRepository
  def active_with_streams
    FixedSession
      .includes(:streams, :user)
      .where('last_measurement_at > ?', Time.current - FixedSession::ACTIVE_FOR)
  end
end