Guest User

Untitled

a guest
Nov 14th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def low_ip_report
  2. @low_ip_report = AutonomousSystem.all(:conditions =>
  3. ['low_ip_alert_check = ?', true]).inject([]) do |list, autonomous_system|
  4. stats = LowIpAlertStat.new(autonomous_system)
  5. stats.calculate
  6. list << stats
  7. end
  8. render :template => 'autonomous_systems/low_ip_report',
  9. :locals => { :low_ip_report => @low_ip_report}
  10. end
Advertisement
Add Comment
Please, Sign In to add comment