Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def low_ip_report
- @low_ip_report = AutonomousSystem.all(:conditions =>
- ['low_ip_alert_check = ?', true]).inject([]) do |list, autonomous_system|
- stats = LowIpAlertStat.new(autonomous_system)
- stats.calculate
- list << stats
- end
- render :template => 'autonomous_systems/low_ip_report',
- :locals => { :low_ip_report => @low_ip_report}
- end
Advertisement
Add Comment
Please, Sign In to add comment