Changeset 220

Show
Ignore:
Timestamp:
08/07/08 23:02:13 (4 months ago)
Author:
pwh
Message:
  • Removed the validate_ip_address function, as it's in nethorus_functions.rb
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nethorus/app/helpers/application_helper.rb

    r176 r220  
    240240  end 
    241241 
    242  
    243   # Validates an IP address by attempting to convert it to an integer, then back again. 
    244    
    245   def validate_ip_address(ip_address) 
    246    
    247     begin 
    248       test_address = IPAddr.new(ip_address) 
    249     rescue 
    250       return false 
    251     end 
    252      
    253     return true 
    254    
    255   end 
    256  
    257242end