Sha256: a0d707c0649631db8a10ee4785dda8d072136042a17d9b3503e9934886425142
Contents?: true
Size: 227 Bytes
Versions: 1
Compression:
Stored size: 227 Bytes
Contents
module Externallink module ViewHelpers def external_url?(url) !internal_url?(url) end def internal_url?(url) url_host = URI(url).host url_host.nil? || request.host == url_host end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
externallink-0.0.3 | lib/externallink/view_helpers.rb |