HabitatMap/AirCasting

View on GitHub
app/services/api/to_active_sessions_json.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method build_json_output has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def build_json_output(anonymous = false)
    sessions = formatted_sessions
    streams = Stream.where(session_id: sessions.pluck('sessions.id'))
    selected_sensor_streams =
      streams.select do |stream|
Severity: Minor
Found in app/services/api/to_active_sessions_json.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status