app/models/agent.rb
def bulk_check(schedule)
      raise "Call #bulk_check on the appropriate subclass of Agent" if self == Agent
      where(:schedule => schedule).pluck("agents.id").each do |agent_id|
        async_check(agent_id)
      end
    end
# Schedule `async_check`s for every Agent on the given schedule.  This is normally called by `run_schedule` once
# per type of agent, so you can override this to define custom bulk check behavior for your custom Agent type.
Schedule `async_check`s for every Agent on the given schedule.  This is normally called by `run_schedule` once
per type of agent, so you can override this to define custom bulk check behavior for your custom Agent type.
Schedule ` async_check ` s for every Agent on the given schedule . This is normally called by ` run_schedule ` once per type of agent so you can override this to define custom bulk check behavior for your custom Agent type .
def bulk_check(schedule)
      raise "Call #bulk_check on the appropriate subclass of Agent" if self == Agent
      where(:schedule => schedule).pluck("agents.id").each do |agent_id|
        async_check(agent_id)
      end
    end
def bulk_check ( schedule ) raise "Call #bulk_check on the appropriate subclass of Agent" if self == Agent where ( :schedule => schedule ) . pluck ( "agents.id" ) . each do | agent_id | async_check ( agent_id ) end end
Schedule `async_check`s for every Agent on the given schedule.
Schedule ` async_check ` s for every Agent on the given schedule .
schedule