Skip to content

Instantly share code, notes, and snippets.

@MarkMenard
Created August 2, 2011 22:02
Show Gist options
  • Save MarkMenard/1121342 to your computer and use it in GitHub Desktop.
Save MarkMenard/1121342 to your computer and use it in GitHub Desktop.
class ServerInformationTool < Tool
accepts :homepage_url, :format => :http_url, :validates => { :http_url => { :require_valid_host_name => true } }
for_each_input :homepage_url do
build ServerInformationInfo
build GeoIpInfo
build DnsInfo
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment