app/models/agent.rb
# You can override this to define a custom bulk_check for your type of Agent.
You can override this to define a custom bulk_check for your type of Agent.
You can override this to define a custom bulk_check for your type of Agent .
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
You can override this to define a custom bulk_check for your type of Agent.
You can override this to define a custom bulk_check for your type of Agent .
schedule